Class IntArrayRBT.IntArrayRBTKeyIterator
java.lang.Object
org.apache.uima.internal.util.rb_trees.IntArrayRBT.IntArrayRBTKeyIterator
- All Implemented Interfaces:
IntListIterator
- Enclosing class:
IntArrayRBT
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final int
getKey
(int node) final boolean
hasNext()
Check if there is a next element.boolean
Check if there is a previous element.void
Move the iterator to the end of the underlying index.void
Move the iterator to the start of the underlying index.final int
nextNvc()
version of next() which bypasses the validity check.int
previous()
Return the previous int and decrement the iterator.int
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
-
Field Details
-
currentNode
protected int currentNode
-
-
Constructor Details
-
IntArrayRBTKeyIterator
protected IntArrayRBTKeyIterator()
-
-
Method Details
-
hasNext
public final boolean hasNext()Description copied from interface:IntListIterator
Check if there is a next element. Does not move the iterator.- Specified by:
hasNext
in interfaceIntListIterator
- Returns:
true
iff there is a next element.
-
nextNvc
public final int nextNvc()Description copied from interface:IntListIterator
version of next() which bypasses the validity check. Only use this if you've already done this check yourself.- Specified by:
nextNvc
in interfaceIntListIterator
- Returns:
- the next int in the list and increment the iterator.
-
hasPrevious
public boolean hasPrevious()Description copied from interface:IntListIterator
Check if there is a previous element. Does not move the iterator.- Specified by:
hasPrevious
in interfaceIntListIterator
- Returns:
true
iff there is a previous element.- See Also:
-
previous
public int previous()Description copied from interface:IntListIterator
Return the previous int and decrement the iterator.- Specified by:
previous
in interfaceIntListIterator
- Returns:
- the previous int (found by first moving the iterator one backwards).
- See Also:
-
previousNvc
public int previousNvc()Description copied from interface:IntListIterator
version of previous that bypasses the validity check. Only use this if you've already done this check yourself.- Specified by:
previousNvc
in interfaceIntListIterator
- Returns:
- the previous int (found by first moving the iterator one backwards).
-
moveToEnd
public void moveToEnd()Description copied from interface:IntListIterator
Move the iterator to the end of the underlying index.- Specified by:
moveToEnd
in interfaceIntListIterator
- See Also:
-
moveToStart
public void moveToStart()Description copied from interface:IntListIterator
Move the iterator to the start of the underlying index.- Specified by:
moveToStart
in interfaceIntListIterator
- See Also:
-
getKey
protected final int getKey(int node)
-