Package org.apache.uima.internal.util
Class PositiveIntSet_impl.IntListIteratorOverArray
java.lang.Object
org.apache.uima.internal.util.PositiveIntSet_impl.IntListIteratorOverArray
- All Implemented Interfaces:
IntListIterator
- Enclosing class:
PositiveIntSet_impl
private class PositiveIntSet_impl.IntListIteratorOverArray
extends Object
implements IntListIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Check if there is a next element.booleanCheck if there is a previous element.voidMove the iterator to the end of the underlying index.voidMove the iterator to the start of the underlying index.intnextNvc()version of next() which bypasses the validity check.intversion of previous that bypasses the validity check.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.uima.internal.util.IntListIterator
next, previous
-
Field Details
-
a
private int[] a -
pos
private int pos
-
-
Constructor Details
-
IntListIteratorOverArray
IntListIteratorOverArray(int[] a)
-
-
Method Details
-
hasNext
public 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 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.
-
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).
-
moveToStart
public void moveToStart()Description copied from interface:IntListIteratorMove the iterator to the start of the underlying index.- Specified by:
moveToStartin interfaceIntListIterator
-
moveToEnd
public void moveToEnd()Description copied from interface:IntListIteratorMove the iterator to the end of the underlying index.- Specified by:
moveToEndin interfaceIntListIterator
-