/** * Perform the difference of two bit sets * * @param other the other bitset in the operation * @throws IllegalArgumentException if other is null */ public void difference(BitSet<T> other) { if (other == null) { throw new IllegalArgumentException("other is null"); } vector.and(BitVector.not(other.vector)); }
/** * Return the NOT of a bit string */ public static BitVector not(BitVector s) { BitVector b = new BitVector(s); b.not(); return b; }
/** * Perform the difference of two bit sets * * @param other the other bitset in the operation * @throws IllegalArgumentException if other is null */ public void difference(BitSet<T> other) { if (other == null) { throw new IllegalArgumentException("other is null"); } vector.and(BitVector.not(other.vector)); }
/** * Return the NOT of a bit string */ public static BitVector not(BitVector s) { BitVector b = new BitVector(s); b.not(); return b; }
/** * Perform the difference of two bit sets * * @param other the other bitset in the operation * @throws IllegalArgumentException if other is null */ public void difference(BitSet<T> other) { if (other == null) { throw new IllegalArgumentException("other is null"); } vector.and(BitVector.not(other.vector)); }
/** * Return the NOT of a bit string */ public static BitVector not(BitVector s) { BitVector b = new BitVector(s); b.not(); return b; }