|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.IDSetIterator
public class IDSetIterator
Iterator for a set of Entry IDs. It must return values in order of ID.
Constructor Summary | |
---|---|
IDSetIterator(long[] entryIDList)
Create a new iterator for a given array of entry IDs. |
|
IDSetIterator(long[] entryIDList,
EntryID begin)
Create a new iterator for a given array of entry IDs. |
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 IDSetIterator(long[] entryIDList)
entryIDList
- An array of IDs in order or ID.public IDSetIterator(long[] entryIDList, EntryID begin)
entryIDList
- An array of IDs in order or ID.begin
- The entry ID of the first entry that should be returned, or
null
if it should start at the beginning of the list.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 |