|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.cas.impl.FSIteratorImplBase<T>
org.apache.uima.cas.impl.UnambiguousIteratorImpl<T>
public class UnambiguousIteratorImpl<T extends AnnotationFS>
Implementation of the unambiguous iterators.
Warning: this implementation creates a copy of the collection, so changes in the underlying collection are not reflected by this iterator.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.uima.cas.impl.FSIteratorImplBase |
---|
FSIteratorImplBase.AnnotationComparator<T extends FeatureStructure> |
Constructor Summary | |
---|---|
UnambiguousIteratorImpl(FSIterator<T> it)
|
|
UnambiguousIteratorImpl(FSIterator<T> it,
int start,
int end,
boolean strict)
|
Method Summary | |
---|---|
FSIterator<T> |
copy()
Copy this iterator. |
T |
get()
Get the structure the iterator is pointing at. |
boolean |
isValid()
Check if this iterator is valid. |
void |
moveTo(FeatureStructure fs)
Move the iterator to the first features structure that is equal to fs . |
void |
moveToFirst()
Move the iterator to the first element. |
void |
moveToLast()
Move the iterator to the last element. |
void |
moveToNext()
Advance the iterator. |
void |
moveToPrevious()
Move the iterator one element back. |
Methods inherited from class org.apache.uima.cas.impl.FSIteratorImplBase |
---|
hasNext, next, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnambiguousIteratorImpl(FSIterator<T> it)
public UnambiguousIteratorImpl(FSIterator<T> it, int start, int end, boolean strict)
Method Detail |
---|
public boolean isValid()
FSIterator
true
if the iterator is valid.public T get() throws java.util.NoSuchElementException
FSIterator
java.util.NoSuchElementException
- If the iterator is not valid.public void moveToNext()
FSIterator
public void moveToPrevious()
FSIterator
public void moveToFirst()
FSIterator
public void moveToLast()
FSIterator
public void moveTo(FeatureStructure fs)
FSIterator
fs
. If no
such feature structure exists in the underlying collection, set the iterator to the "insertion
point" for fs
, i.e., to a point where the current feature structure is greater
than fs
, and the previous one is less than fs
.
fs
- The feature structure the iterator should be set to.public FSIterator<T> copy()
FSIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |