Code example for BitSet

Methods: cardinality

0
      return new Subset((BitSet)subset.clone (), this.merit);
    } 
 
    public int cardinality(){ 
      if(subset == null) return 0;
      return subset.cardinality ();
    } 
 
    public void flip(int index)
    throws Exception{ 
 
      subset.flip (index);
      merit = ASEvaluator.evaluateSubset (subset);
      m_totalEvals ++;
    } 
 
    public boolean contains(int indexAttribute){
      return subset.get (indexAttribute);
    } 
  } 
Contextual code suggestions in your IDE  Get Codota for Java