Package org.apache.uima.cas.impl
Class FSListIteratorImpl<T extends FeatureStructure>
java.lang.Object
org.apache.uima.cas.impl.FSListIteratorImpl<T>
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
Class comment for FSListIteratorImpl.java goes here.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
hasNext()
boolean
void
Move the iterator so that the next call toprevious()
will return the first element in the index (for a non-empty index).void
Move the iterator so that the next call tonext()
will return the first element in the index (for a non-empty index).next()
int
previous()
int
void
remove()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
forward
-
back
-
-
Constructor Details
-
FSListIteratorImpl
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends FeatureStructure>
- Specified by:
hasNext
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
moveToEnd
public void moveToEnd()Move the iterator so that the next call toprevious()
will return the first element in the index (for a non-empty index). -
moveToStart
public void moveToStart()Move the iterator so that the next call tonext()
will return the first element in the index (for a non-empty index). -
next
- Specified by:
next
in interfaceIterator<T extends FeatureStructure>
- Specified by:
next
in interfaceListIterator<T extends FeatureStructure>
- Throws:
NoSuchElementException
- See Also:
-
previous
- Specified by:
previous
in interfaceListIterator<T extends FeatureStructure>
- Throws:
NoSuchElementException
- See Also:
-
add
- Specified by:
add
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<T extends FeatureStructure>
- Specified by:
remove
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
set
- Specified by:
set
in interfaceListIterator<T extends FeatureStructure>
- See Also:
-
java.util.ListIterator#set(T)
-