code: protected void computeCardinality() {
      this.cardinality = 0;
      for (int k = 0; k < this.bitmap.length; k++) {
        this.cardinality += Long.bitCount(this.bitmap[k]);
      }
    }
docs: Recomputes the cardinality of the bitmap.