|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectIterator
it.unimi.dsi.mg4j.search.IntervalIterators.FakeIterator
An iterator that throws an exception on all method calls, except for hasNext()
,
which has a settable value.
The only purpose of this class is to instantiate "absolute value" iterators
such as IntervalIterators.TRUE
and IntervalIterators.FALSE
.
Method Summary | |
int |
extent()
Returns an approximation of a lower bound for the length of an interval returned by this iterator. |
boolean |
hasNext()
|
Object |
next()
|
Interval |
nextInterval()
Returns the next interval in the sequence. |
void |
reset()
Resets the internal state of this iterator for a new document. |
String |
toString()
|
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectIterator |
remove, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Iterator |
remove |
Method Detail |
public boolean hasNext()
hasNext
in interface Iterator
public Interval nextInterval()
IntervalIterator
A call to this method is equivalent to (Interval)next()
.
nextInterval
in interface IntervalIterator
public void reset()
IntervalIterator
To reduce object creation, interval iterators are usually created in a lazy
fashion by document iterator when they are needed. However, this implies that
every time the document iterator is moved, some internal state of the interval iterator must be reset
(e.g., because on the new document some of the component interval iterators are now
IntervalIterators.TRUE
).
reset
in interface IntervalIterator
public Object next()
next
in interface Iterator
public int extent()
IntervalIterator
extent
in interface IntervalIterator
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |