Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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).
|
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.public boolean hasNext()
public EntryID next() throws NoSuchElementException
hasNext()
method returns false will
return each element in the underlying collection exactly once.next
in interface Iterator<EntryID>
NoSuchElementException
- iteration has no more elements.public void remove() throws UnsupportedOperationException
remove
in interface Iterator<EntryID>
UnsupportedOperationException
- if the remove
operation is not supported by this Iterator.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.