Package org.apache.uima.cas.impl
Class IntIterator4set<T extends FeatureStructure>
- java.lang.Object
-
- org.apache.uima.cas.impl.FSIntIteratorImplBase<T>
-
- org.apache.uima.cas.impl.IntIterator4set<T>
-
- All Implemented Interfaces:
java.lang.Comparable<FSIntIteratorImplBase<T>>,LowLevelIterator,ComparableIntPointerIterator<T>,IntPointerIterator
public class IntIterator4set<T extends FeatureStructure> extends FSIntIteratorImplBase<T>
-
-
Field Summary
-
Fields inherited from class org.apache.uima.cas.impl.FSIntIteratorImplBase
detectIllegalIndexUpdates
-
-
Constructor Summary
Constructors Constructor Description IntIterator4set(FSRBTSetIndex<T> fsSetIndex, int[] detectIllegalIndexUpdates, IntComparator comp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FSIntIteratorImplBase<T> o)java.lang.Objectcopy()Create a copy of this iterator.intget()booleanisValid()Check if the iterator is currently valid.intll_indexSize()Return the size of the underlying index.voidmoveTo(int i)Try to position the iterator so that the current element is greater than or equal tofsRef, and previous elements are less thanfsRef.voidmoveToFirst()If empty, make position -1 (invalid)voidmoveToLast()If empty, make position -1 (invalid)voidmoveToNext()Advance the iterator.voidmoveToPrevious()Move the iterator back one position.-
Methods inherited from class org.apache.uima.cas.impl.FSIntIteratorImplBase
checkConcurrentModification, dec, inc, ll_get, ll_getIndex, resetConcurrentModification
-
-
-
-
Constructor Detail
-
IntIterator4set
public IntIterator4set(FSRBTSetIndex<T> fsSetIndex, int[] detectIllegalIndexUpdates, IntComparator comp)
-
-
Method Detail
-
isValid
public boolean isValid()
Description copied from interface:LowLevelIteratorCheck if the iterator is currently valid.- Returns:
trueiff the iterator is valid.
-
moveToFirst
public void moveToFirst()
If empty, make position -1 (invalid)
-
moveToLast
public void moveToLast()
If empty, make position -1 (invalid)
-
moveToNext
public void moveToNext()
Description copied from interface:LowLevelIteratorAdvance the iterator. This may invalidate the iterator.
-
moveToPrevious
public void moveToPrevious()
Description copied from interface:LowLevelIteratorMove the iterator back one position. This may invalidate the iterator.
-
get
public int get()
-
copy
public java.lang.Object copy()
Description copied from interface:LowLevelIteratorCreate a copy of this iterator. The copy will point at the same element that this iterator is currently pointing at.- Returns:
- A copy of this iterator.
- See Also:
IntPointerIterator.copy()
-
moveTo
public void moveTo(int i)
Description copied from interface:LowLevelIteratorTry to position the iterator so that the current element is greater than or equal tofsRef, and previous elements are less thanfsRef. This may invalidate the iterator. If fsRef can not be compared to FSs in the index, the results are undefined.- Parameters:
i- The FS reference the iterator should be set to.- See Also:
IntPointerIterator.moveTo(int)
-
ll_indexSize
public int ll_indexSize()
Description copied from interface:LowLevelIteratorReturn the size of the underlying index.- Returns:
- The size of the index.
-
compareTo
public int compareTo(FSIntIteratorImplBase<T> o)
- Specified by:
compareToin interfacejava.lang.Comparable<T extends FeatureStructure>- Overrides:
compareToin classFSIntIteratorImplBase<T extends FeatureStructure>
-
-