public class ObjectsIterator
extends java.lang.Object
implements java.io.Closeable, java.util.Iterator<java.lang.Long>
Iterator to traverse all the object identifiers from an Objects instance.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the ObjectsIterator instance.
|
boolean |
hasNext()
Gets if there are more elements to traverse.
|
boolean |
isClosed()
Gets if ObjectsIterator instance has been closed or not.
|
java.lang.Long |
next()
See nextObject().
|
long |
nextObject()
Gets the next element.
|
void |
remove()
Operation not supported.
|
public java.lang.Long next()
next in interface java.util.Iterator<java.lang.Long>public long nextObject()
public boolean isClosed()
close()public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>public void close()
It must be called to ensure the integrity of all data.
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void remove()
remove in interface java.util.Iterator<java.lang.Long>