/** * Return a new bit string as the AND of two others. */ public static BitVector andNot(BitVector b1, BitVector b2) { BitVector b = new BitVector(b1); b.andNot(b2); return b; }
/** * Return a new bit string as the AND of two others. */ public static BitVector andNot(BitVector b1, BitVector b2) { BitVector b = new BitVector(b1); b.andNot(b2); return b; }
/** * Return a new bit string as the AND of two others. */ public static BitVector andNot(BitVector b1, BitVector b2) { BitVector b = new BitVector(b1); b.andNot(b2); return b; }
/** * @throws IllegalArgumentException if set is null */ public boolean removeAll(BitVectorIntSet set) { if (set == null) { throw new IllegalArgumentException("set is null"); } int oldSize = size(); bitVector.andNot(set.bitVector); populationCount = UNDEFINED; return oldSize > size(); }
/** * @throws IllegalArgumentException if set is null */ public boolean removeAll(BitVectorIntSet set) { if (set == null) { throw new IllegalArgumentException("set is null"); } int oldSize = size(); bitVector.andNot(set.bitVector); populationCount = UNDEFINED; return oldSize > size(); }
/** * @throws IllegalArgumentException if set is null */ public boolean removeAll(BitVectorIntSet set) { if (set == null) { throw new IllegalArgumentException("set is null"); } int oldSize = size(); bitVector.andNot(set.bitVector); populationCount = UNDEFINED; return oldSize > size(); }