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>,ListIterator<T>,FSIterator<T>,LowLevelIterator<T>
public abstract class FSIteratorImplBase<T extends FeatureStructure>
extends Object
implements LowLevelIterator<T>
Version 2 compatibility only, not used internally in version 3 Base class for FSIterator
implementations. Defines the hasNext, next, and remove methods required by java.util.Iterator.
Users writing their own iterator implementations may extend this class
-
Field Summary
Fields inherited from interface org.apache.uima.cas.impl.LowLevelIterator
FS_ITERATOR_LOW_LEVEL_EMPTY, IS_ORDERED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefault implementation of getComparatorbooleanhasNext()DEFAULT implementations of Iterator interface in terms of FSIterator methodsnext()voidremove()Removes from all the indexes associated with this view, the "current" Feature Structure (the one that would be returned by a "get()" operation).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.uima.cas.FSIterator
add, copy, get, getNvc, getType, hasPrevious, isValid, moveToNext, moveToNextNvc, moveToPrevious, moveToPreviousNvc, nextIndex, nextNvc, previous, previousIndex, previousNvc, set, size, spliterator, streamMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface org.apache.uima.cas.impl.LowLevelIterator
getArrayList, isIndexesHaveBeenUpdated, isMoveToSupported, ll_get, ll_getIndex, ll_indexSizeMaybeNotCurrent, ll_maxAnnotSpan, ll_remove, maybeReinitIterator, moveTo, moveTo, moveToFirst, moveToFirstNoReinit, moveToLast, moveToLastNoReinit, moveToNoReinit
-
Constructor Details
-
FSIteratorImplBase
public FSIteratorImplBase()
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:FSIteratorDEFAULT implementations of Iterator interface in terms of FSIterator methods- Specified by:
hasNextin interfaceFSIterator<T extends FeatureStructure>- Specified by:
hasNextin interfaceIterator<T extends FeatureStructure>- Specified by:
hasNextin interfaceListIterator<T extends FeatureStructure>
-
next
- Specified by:
nextin interfaceFSIterator<T extends FeatureStructure>- Specified by:
nextin interfaceIterator<T extends FeatureStructure>- Specified by:
nextin interfaceListIterator<T extends FeatureStructure>
-
remove
public void remove()Description copied from interface:FSIteratorRemoves from all the indexes associated with this view, the "current" Feature Structure (the one that would be returned by a "get()" operation).- Specified by:
removein interfaceFSIterator<T extends FeatureStructure>- Specified by:
removein interfaceIterator<T extends FeatureStructure>- Specified by:
removein interfaceListIterator<T extends FeatureStructure>
-
getComparator
default implementation of getComparator- Specified by:
getComparatorin interfaceLowLevelIterator<T extends FeatureStructure>- Returns:
- the comparator used by this iterator. It is always a withoutID style, and may be either a withType or NoType style.
-