示例#1
0
 /**
  * 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));
 }
示例#2
0
 /**
  * Perform intersection of two bitsets
  *
  * @param other the other bitset in the operation
  * @throws IllegalArgumentException if other is null
  */
 public void intersect(BitSet<?> other) {
   if (other == null) {
     throw new IllegalArgumentException("other is null");
   }
   vector.and(other.vector);
 }