Package org.apache.uima.internal.util
Class IntBitSet.IntBitSetIterator
- java.lang.Object
-
- org.apache.uima.internal.util.IntBitSet.IntBitSetIterator
-
- All Implemented Interfaces:
IntListIterator
- Enclosing class:
- IntBitSet
private class IntBitSet.IntBitSetIterator extends java.lang.Object implements IntListIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurKeyThis is the bit set position which is -1 (if invalid) or the position in the bit set of the key - offset If the offset is not 0, then the position != key
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntBitSetIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Check if there is a next element.booleanhasPrevious()Check if there is a previous element.voidmoveToEnd()Move the iterator to the end of the underlying index.voidmoveToStart()Move the iterator to the start of the underlying index.intnextNvc()version of next() which bypasses the validity check.intpreviousNvc()version of previous that bypasses the validity check.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.uima.internal.util.IntListIterator
next, previous
-
-
-
-
Method Detail
-
hasNext
public final boolean hasNext()
Description copied from interface:IntListIteratorCheck if there is a next element. Does not move the iterator.- Specified by:
hasNextin interfaceIntListIterator- Returns:
trueiff there is a next element.
-
nextNvc
public final int nextNvc()
Description copied from interface:IntListIteratorversion of next() which bypasses the validity check. Only use this if you've already done this check yourself.- Specified by:
nextNvcin interfaceIntListIterator- Returns:
- the next int in the list and increment the iterator.
-
hasPrevious
public boolean hasPrevious()
Description copied from interface:IntListIteratorCheck if there is a previous element. Does not move the iterator.- Specified by:
hasPreviousin interfaceIntListIterator- Returns:
trueiff there is a previous element.- See Also:
IntListIterator.hasPrevious()
-
previousNvc
public int previousNvc()
Description copied from interface:IntListIteratorversion of previous that bypasses the validity check. Only use this if you've already done this check yourself.- Specified by:
previousNvcin interfaceIntListIterator- Returns:
- the previous int (found by first moving the iterator one backwards).
-
moveToEnd
public void moveToEnd()
Description copied from interface:IntListIteratorMove the iterator to the end of the underlying index.- Specified by:
moveToEndin interfaceIntListIterator- See Also:
IntListIterator.moveToEnd()
-
moveToStart
public void moveToStart()
Description copied from interface:IntListIteratorMove the iterator to the start of the underlying index.- Specified by:
moveToStartin interfaceIntListIterator- See Also:
IntListIterator.moveToStart()
-
-