valueOf
Returns a new bit set containing all the bits in the given long array.
More precisely, BitSet.valueOf(longs).get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)
for all n < 64 * longs.length.
This method is equivalent to BitSet.valueOf(LongBuffer.wrap(longs)).
Return
a BitSet containing all the bits in the long array
Since
1.7
Parameters
a long array containing a little-endian representation of a sequence of bits to be used as the initial bits of the new bit set
Returns a new bit set containing all the bits in the given long buffer between its position and limit.
More precisely, BitSet.valueOf(lb).get(n) == ((lb.get(lb.position()+n/64) & (1L<<(n%64))) != 0)
for all n < 64 * lb.remaining().
The long buffer is not modified by this method, and no reference to the buffer is retained by the bit set.
Return
a BitSet containing all the bits in the buffer in the specified range
Since
1.7
Parameters
a long buffer containing a little-endian representation of a sequence of bits between its position and limit, to be used as the initial bits of the new bit set
Returns a new bit set containing all the bits in the given byte array.
More precisely, BitSet.valueOf(bytes).get(n) == ((bytes[n/8] & (1<<(n%8))) != 0)
for all n < 8 * bytes.length.
This method is equivalent to BitSet.valueOf(ByteBuffer.wrap(bytes)).
Return
a BitSet containing all the bits in the byte array
Since
1.7
Parameters
a byte array containing a little-endian representation of a sequence of bits to be used as the initial bits of the new bit set
Returns a new bit set containing all the bits in the given byte buffer between its position and limit.
More precisely, BitSet.valueOf(bb).get(n) == ((bb.get(bb.position()+n/8) & (1<<(n%8))) != 0)
for all n < 8 * bb.remaining().
The byte buffer is not modified by this method, and no reference to the buffer is retained by the bit set.
Return
a BitSet containing all the bits in the buffer in the specified range
Since
1.7
Parameters
a byte buffer containing a little-endian representation of a sequence of bits between its position and limit, to be used as the initial bits of the new bit set