Package org.apache.uima.internal.util
Class Int2IntHashMap.KeyIterator
java.lang.Object
org.apache.uima.internal.util.Int2IntHashMap.KeyIterator
- All Implemented Interfaces:
IntListIterator
- Enclosing class:
Int2IntHashMap
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
next()
Return the next feature structure and increment the iterator.int
previous()
Return the previous feature structure and decrement the iterator.
-
Field Details
-
curPosition
private int curPosition
-
-
Constructor Details
-
KeyIterator
private KeyIterator()
-
-
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.
-
next
public final int next()Description copied from interface:IntListIterator
Return the next feature structure and increment the iterator.- Specified by:
next
in interfaceIntListIterator
- Returns:
- The next feature structure.
-
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 feature structure and decrement the iterator.- Specified by:
previous
in interfaceIntListIterator
- Returns:
- The previous feature structure.
- See Also:
-
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:
-