| Constructor and Description |
|---|
BitVectorImpl()
Constructor of a bit vector of size 0.
|
BitVectorImpl(BitVector bitVector)
Copy constructor of a bit vector.
|
BitVectorImpl(long initialSize)
Constructor of a bit vector of size initialSize.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBit(boolean bit)
Appends a bit to this bit vector.
|
boolean |
equals(Object obj)
Returns
true if and only if the specified object is also a
BitVector and both contain the same bits in the same order. |
boolean |
getBit(long position)
This is the "access" method of bit vectors.
|
int |
hashCode() |
Iterator<Boolean> |
iterator() |
void |
setBit(long position,
boolean bit)
Sets a bit at a particular position.
|
long |
size() |
String |
toString() |
public BitVectorImpl()
public BitVectorImpl(BitVector bitVector)
bitVector - bit vectorpublic BitVectorImpl(long initialSize)
false at all indexes.initialSize - initial size of this bit vectorpublic boolean addBit(boolean bit)
BitVectorpublic boolean equals(Object obj)
BitVectortrue if and only if the specified object is also a
BitVector and both contain the same bits in the same order.public boolean getBit(long position)
BitVectorpublic void setBit(long position,
boolean bit)
BitVectorCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage