Package org.apache.uima.cas.impl
Class FSIteratorImplBase<T extends FeatureStructure>
java.lang.Object
org.apache.uima.cas.impl.FSIteratorImplBase<T>
- All Implemented Interfaces:
Iterator<T>
,FSIterator<T>
- Direct Known Subclasses:
FilteredIterator
,FSIndexFlat.FSIteratorFlat
,FSIteratorAggregate
,FSIteratorWrapper
,FSIteratorWrapperDoubleCheck
,Subiterator
public abstract class FSIteratorImplBase<T extends FeatureStructure>
extends Object
implements FSIterator<T>
Base class for FSIterator implementations. Defines the hasNext, next, and remove methods required
by java.util.Iterator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
getBegin()
(package private) int
getEnd()
boolean
hasNext()
(package private) <TT extends AnnotationFS>
voidmoveTo
(int begin, int end) A special version of moveTo for subtypes of AnnotationFS, which moves to a particular begin/end (no type priority).next()
void
remove()
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.cas.FSIterator
copy, get, isValid, moveTo, moveToFirst, moveToLast, moveToNext, moveToPrevious
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FSIteratorImplBase
public FSIteratorImplBase()
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends FeatureStructure>
-
next
- Specified by:
next
in interfaceIterator<T extends FeatureStructure>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<T extends FeatureStructure>
-
getBegin
int getBegin() -
getEnd
int getEnd() -
moveTo
A special version of moveTo for subtypes of AnnotationFS, which moves to a particular begin/end (no type priority).- Parameters:
begin
- the starting point (inclusive)end
- the ending point (inclusive)
-