|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.aflow.util.BitVectorIteratorImpl
BitVectorIteratorImpl class: (##6)
| Constructor Summary | |
BitVectorIteratorImpl(BitVector pBitVector)
|
|
| Method Summary | |
int |
currentIndex()
Returns the current index of bit position. |
boolean |
hasNext()
hasNext: Sees whether the BitVector associated with this BitVectorIterator has more elements. |
int |
next()
Returns the next bit position of this BitVectorIterator. |
int |
nextIndex()
nextIndex: Returns the next index of bit position that has value 1. |
void |
resetBit()
Resets the bit for the position returned by the last call to next() or nextIndex(). |
void |
setBit()
Sets the bit for the position returned by the last call to next() or nextIndex(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BitVectorIteratorImpl(BitVector pBitVector)
| Method Detail |
public boolean hasNext()
BitVectorIteratorBitVector associated with this BitVectorIterator has more elements. This method does not check the contents of the remaining bits.
hasNext in interface BitVectorIteratorpublic int next()
BitVectorIteratorBitVectorIterator.
next in interface BitVectorIteratorpublic int nextIndex()
BitVectorIteratorhasNext returned true does not guarantee this method returns meaningful (nonzero) value.
nextIndex in interface BitVectorIteratorpublic int currentIndex()
BitVectorIteratornext() or nextIndex().
currentIndex in interface BitVectorIteratorpublic void resetBit()
BitVectorIterator
resetBit in interface BitVectorIteratorpublic void setBit()
BitVectorIterator
setBit in interface BitVectorIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||