/** * Creates a copy of a Bit String * * @param s the string to copy * @throws IllegalArgumentException if s is null */ public BitVector(BitVector s) { if (s == null) { throw new IllegalArgumentException("s is null"); } bits = new int[s.bits.length]; copyBits(s); }
/** * Method copy. Copies the bits in the bit vector, but only assigns the object map. No need to create a new object/bit bijection * object. * * @throws IllegalArgumentException if other is null */ public void copyBits(BitSet<T> other) { if (other == null) { throw new IllegalArgumentException("other is null"); } vector.copyBits(other.vector); map = other.map; }
/** * Method copy. Copies the bits in the bit vector, but only assigns the object map. No need to create a new object/bit bijection * object. * * @throws IllegalArgumentException if other is null */ public void copyBits(BitSet<T> other) { if (other == null) { throw new IllegalArgumentException("other is null"); } vector.copyBits(other.vector); map = other.map; }
/** * Method copy. Copies the bits in the bit vector, but only assigns the object map. No need to create a new object/bit bijection * object. * * @throws IllegalArgumentException if other is null */ public void copyBits(BitSet<T> other) { if (other == null) { throw new IllegalArgumentException("other is null"); } vector.copyBits(other.vector); map = other.map; }
/** * Creates a copy of a Bit String * * @param s the string to copy * @throws IllegalArgumentException if s is null */ public BitVector(BitVector s) { if (s == null) { throw new IllegalArgumentException("s is null"); } bits = new int[s.bits.length]; copyBits(s); }
/** * Creates a copy of a Bit String * * @param s the string to copy * @throws IllegalArgumentException if s is null */ public BitVector(BitVector s) { if (s == null) { throw new IllegalArgumentException("s is null"); } bits = new int[s.bits.length]; copyBits(s); }