public class DummyStorageIterator<T extends Persistable> extends java.lang.Object implements IStorageIterator<T>
Modifier and Type | Field and Description |
---|---|
(package private) int |
count |
(package private) java.util.Hashtable<java.lang.Integer,T> |
data |
(package private) java.lang.Integer[] |
keys |
Constructor and Description |
---|
DummyStorageIterator(java.util.Hashtable<java.lang.Integer,T> data) |
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.
|
T |
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.
|
java.util.Hashtable<java.lang.Integer,T extends Persistable> data
int count
java.lang.Integer[] keys
public DummyStorageIterator(java.util.Hashtable<java.lang.Integer,T> data)
public boolean hasMore()
Iterator
hasMore
in interface Iterator<T extends Persistable>
public int nextID()
Iterator
nextID
in interface Iterator<T extends Persistable>
public T nextRecord()
Iterator
nextRecord
in interface Iterator<T extends Persistable>
public int numRecords()
Iterator
numRecords
in interface Iterator<T extends Persistable>
public int peekID()
Iterator
peekID
in interface Iterator<T extends Persistable>