public interface BitVector
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBit(boolean bit)
Appends a bit to this bit vector.
|
boolean |
equals(Object o)
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.
|
Iterator<Boolean> |
iterator() |
void |
setBit(long position,
boolean bit)
Sets a bit at a particular position.
|
long |
size() |
boolean equals(Object o)
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)
IndexOutOfBoundsException - if the position is out of rangelong size()
boolean addBit(boolean bit)
true if the element was successfully addedvoid setBit(long position,
boolean bit)
position - positionbit - bitIndexOutOfBoundsException - if the position is out of rangeCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage