/** * Creates a new <code>BitVector</code> object that posesses the same characteristics as a given * <code>BitVectorDto</code>. * * @param d the <code>BitVectorDto</code> from which data will be obtained. * @return a <code>BitVector</code> based on the information (size, bits) found in the <code> * BitVectorDto</code> <b>d</b>. */ public static BitVector toVector(BitVectorDto d) { if (d == null) { throw new NullPointerException("dto cannot be null"); } return new BitVector(d.getSize(), d.getBits()); }