|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.IndexIteratorRange
public class IndexIteratorRange
Implements an iterator over a range of entry IDs.
Constructor Summary | |
---|---|
IndexIteratorRange(long lowID,
long highID)
Constructs a range iterator from lower and upper bounds. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
EntryID |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexIteratorRange(long lowID, long highID)
lowID
- The lower bound.highID
- The upper bound.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<EntryID>
public EntryID next() throws java.util.NoSuchElementException
hasNext()
method returns false will return each element
in the underlying collection exactly once.
next
in interface java.util.Iterator<EntryID>
java.util.NoSuchElementException
- iteration has no more elements.public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<EntryID>
java.lang.UnsupportedOperationException
- if the remove operation is
not supported by this Iterator.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |