/** * Add all bits in BitVector B to this bit set */ public void addAll(BitVector B) { vector.or(B); }
/** * Add all bits in BitVector B to this bit set */ public void addAll(BitVector B) { vector.or(B); }
/** * Add all bits in BitVector B to this bit set */ public void addAll(BitVector B) { vector.or(B); }
public BitVectorIntSet(BitVector v) { if (v == null) { throw new IllegalArgumentException("null v"); } bitVector.or(v); populationCount = UNDEFINED; }
public BitVectorIntSet(BitVector v) { if (v == null) { throw new IllegalArgumentException("null v"); } bitVector.or(v); populationCount = UNDEFINED; }
/** * Add all elements in bitset B to this bit set * * @throws IllegalArgumentException if B is null */ public void addAll(BitSet<?> B) { if (B == null) { throw new IllegalArgumentException("B is null"); } vector.or(B.vector); }
/** * Add all elements in bitset B to this bit set * * @throws IllegalArgumentException if B is null */ public void addAll(BitSet<?> B) { if (B == null) { throw new IllegalArgumentException("B is null"); } vector.or(B.vector); }
/** * Add all elements in bitset B to this bit set * * @throws IllegalArgumentException if B is null */ public void addAll(BitSet<?> B) { if (B == null) { throw new IllegalArgumentException("B is null"); } vector.or(B.vector); }
public BitVectorIntSet(BitVector v) { if (v == null) { throw new IllegalArgumentException("null v"); } bitVector.or(v); populationCount = UNDEFINED; }
/** * Return a new FixedSizeBitVector as the OR of two others */ public static BitVector or(BitVector b1, BitVector b2) { if (b1 == null) { throw new IllegalArgumentException("null b1"); } if (b2 == null) { throw new IllegalArgumentException("null b2"); } BitVector b = new BitVector(b1); b.or(b2); return b; }
/** * Return a new FixedSizeBitVector as the OR of two others */ public static BitVector or(BitVector b1, BitVector b2) { if (b1 == null) { throw new IllegalArgumentException("null b1"); } if (b2 == null) { throw new IllegalArgumentException("null b2"); } BitVector b = new BitVector(b1); b.or(b2); return b; }
/** * Return a new FixedSizeBitVector as the OR of two others */ public static BitVector or(BitVector b1, BitVector b2) { if (b1 == null) { throw new IllegalArgumentException("null b1"); } if (b2 == null) { throw new IllegalArgumentException("null b2"); } BitVector b = new BitVector(b1); b.or(b2); return b; }
/** * this version of add all will likely be faster if the client doesn't care about the change or the population count. * @throws IllegalArgumentException if set == null */ public void addAllOblivious(IntSet set) throws IllegalArgumentException { if (set == null) { throw new IllegalArgumentException("set == null"); } if (set instanceof BitVectorIntSet) { BitVector B = ((BitVectorIntSet) set).bitVector; bitVector.or(B); populationCount = UNDEFINED; } else { BitVectorIntSet other = new BitVectorIntSet(set); addAllOblivious(other); } }
/** * this version of add all will likely be faster if the client doesn't care about the change or the population count. * @throws IllegalArgumentException if set == null */ public void addAllOblivious(IntSet set) throws IllegalArgumentException { if (set == null) { throw new IllegalArgumentException("set == null"); } if (set instanceof BitVectorIntSet) { BitVector B = ((BitVectorIntSet) set).bitVector; bitVector.or(B); populationCount = UNDEFINED; } else { BitVectorIntSet other = new BitVectorIntSet(set); addAllOblivious(other); } }
/** * this version of add all will likely be faster if the client doesn't care about the change or the population count. * @throws IllegalArgumentException if set == null */ public void addAllOblivious(IntSet set) throws IllegalArgumentException { if (set == null) { throw new IllegalArgumentException("set == null"); } if (set instanceof BitVectorIntSet) { BitVector B = ((BitVectorIntSet) set).bitVector; bitVector.or(B); populationCount = UNDEFINED; } else { BitVectorIntSet other = new BitVectorIntSet(set); addAllOblivious(other); } }