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 Details

    • FSIteratorImplBase

      public FSIteratorImplBase()
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T extends FeatureStructure>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T extends FeatureStructure>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T extends FeatureStructure>
    • getBegin

      int getBegin()
    • getEnd

      int getEnd()
    • moveTo

      <TT extends AnnotationFS> void moveTo(int begin, int end)
      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)