public class LowLevelIterator_empty<T extends FeatureStructure> extends Object implements LowLevelIterator<T>
FS_ITERATOR_LOW_LEVEL_EMPTY, IS_ORDERED
Constructor and Description |
---|
LowLevelIterator_empty() |
Modifier and Type | Method and Description |
---|---|
LowLevelIterator_empty<T> |
copy()
Copy this iterator.
|
Comparator<TOP> |
getComparator() |
T |
getNvc()
Get the structure the iterator is pointing at.
|
Type |
getType() |
boolean |
isIndexesHaveBeenUpdated() |
boolean |
isValid()
Check if this iterator is valid.
|
LowLevelIndex<T> |
ll_getIndex()
Get the index for just the top most type of this iterator (excludes subtypes).
|
int |
ll_indexSizeMaybeNotCurrent() |
int |
ll_maxAnnotSpan() |
boolean |
maybeReinitIterator()
Internal use
|
void |
moveToFirstNoReinit()
Internal use
same as moveToFirst, but won't reset to use current contents of index if index has changed
|
void |
moveToLastNoReinit()
Internal use
same as moveToLast, but won't reset to use current contents of index if index has changed
|
void |
moveToNextNvc()
version of moveToNext which bypasses the isValid check - call only if you've just done this check yourself
|
void |
moveToNoReinit(FeatureStructure fs)
Internal use
same as moveTo(fs), but won't reset to use current contents of index if index has changed
|
void |
moveToPreviousNvc()
version of moveToPrevious which bypasses the isValid check - call only if you've just done this check yourself
|
int |
size()
return the size of the collection being iterated over, if available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArrayList, isMoveToSupported, ll_get, ll_remove, moveTo, moveTo, moveToFirst, moveToLast
add, get, hasNext, hasPrevious, moveToNext, moveToPrevious, next, nextIndex, nextNvc, previous, previousIndex, previousNvc, remove, set, spliterator, stream
forEachRemaining
public boolean isValid()
FSIterator
isValid
in interface FSIterator<T extends FeatureStructure>
true
if the iterator is valid.public T getNvc()
FSIterator
getNvc
in interface FSIterator<T extends FeatureStructure>
public void moveToFirstNoReinit()
LowLevelIterator
moveToFirstNoReinit
in interface LowLevelIterator<T extends FeatureStructure>
public void moveToLastNoReinit()
LowLevelIterator
moveToLastNoReinit
in interface LowLevelIterator<T extends FeatureStructure>
public void moveToNoReinit(FeatureStructure fs)
LowLevelIterator
moveToNoReinit
in interface LowLevelIterator<T extends FeatureStructure>
fs
- the fs to use as the template identifying the place to move topublic LowLevelIterator_empty<T> copy()
FSIterator
copy
in interface FSIterator<T extends FeatureStructure>
public void moveToNextNvc()
FSIterator
moveToNextNvc
in interface FSIterator<T extends FeatureStructure>
public void moveToPreviousNvc()
FSIterator
moveToPreviousNvc
in interface FSIterator<T extends FeatureStructure>
public int ll_indexSizeMaybeNotCurrent()
ll_indexSizeMaybeNotCurrent
in interface LowLevelIterator<T extends FeatureStructure>
public int ll_maxAnnotSpan()
ll_maxAnnotSpan
in interface LowLevelIterator<T extends FeatureStructure>
public LowLevelIndex<T> ll_getIndex()
LowLevelIterator
ll_getIndex
in interface LowLevelIterator<T extends FeatureStructure>
public boolean isIndexesHaveBeenUpdated()
isIndexesHaveBeenUpdated
in interface LowLevelIterator<T extends FeatureStructure>
public boolean maybeReinitIterator()
LowLevelIterator
maybeReinitIterator
in interface LowLevelIterator<T extends FeatureStructure>
public Comparator<TOP> getComparator()
getComparator
in interface LowLevelIterator<T extends FeatureStructure>
public Type getType()
getType
in interface FSIterator<T extends FeatureStructure>
public int size()
FSIterator
size
in interface FSIterator<T extends FeatureStructure>
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.