public class UnambiguousIteratorImpl<T extends AnnotationFS> extends FSIteratorImplBase<T>
Warning: this implementation creates a copy of the collection, so changes in the underlying collection are not reflected by this iterator.
FSIteratorImplBase.AnnotationComparator<T extends FeatureStructure>| Constructor and Description |
|---|
UnambiguousIteratorImpl(FSIterator<T> it) |
UnambiguousIteratorImpl(FSIterator<T> it,
int start,
int end,
boolean strict) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
hasNext, next, removepublic UnambiguousIteratorImpl(FSIterator<T> it)
public UnambiguousIteratorImpl(FSIterator<T> it, int start, int end, boolean strict)
public boolean isValid()
FSIteratortrue if the iterator is valid.public T get() throws java.util.NoSuchElementException
FSIteratorjava.util.NoSuchElementException - If the iterator is not valid.public void moveToNext()
FSIteratorpublic void moveToPrevious()
FSIteratorpublic void moveToFirst()
FSIteratorpublic void moveToLast()
FSIteratorpublic void moveTo(FeatureStructure fs)
FSIteratorfs. 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()
FSIteratorCopyright © 2013. All Rights Reserved.