public interface Iterator<E>
Modifier and Type | Method and Description |
---|---|
boolean |
hasMore()
Return whether the set has more records to iterate through
|
int |
nextID()
Return the ID of the next record in the set.
|
E |
nextRecord()
Return the next record in the set.
|
int |
numRecords()
Number of records in the set
|
int |
peekID()
Return the ID of the next record in the set without advancing the iterator.
|
int numRecords()
int peekID()
StorageModifiedException
- if the underlying StorageUtility has been modified since this iterator
was createdjava.lang.IllegalStateException
- if all records have already been iterated throughint nextID()
StorageModifiedException
- if the underlying StorageUtility has been modified since this iterator
was createdjava.lang.IllegalStateException
- if all records have already been iterated throughE nextRecord()
java.lang.IllegalStateException
- if all records have already been iterated throughboolean hasMore()