Class DummyStorageIterator<T extends Persistable>
java.lang.Object
org.javarosa.core.services.storage.util.DummyStorageIterator<T>
- All Implemented Interfaces:
IStorageIterator<T>,Iterator<T>
public class DummyStorageIterator<T extends Persistable> extends Object implements IStorageIterator<T>
- Author:
- ctsims
-
Constructor Summary
Constructors Constructor Description DummyStorageIterator(Hashtable<Integer,T> data) -
Method Summary
Modifier and Type Method Description booleanhasMore()Return whether the set has more records to iterate throughintnextID()Return the ID of the next record in the set.TnextRecord()Return the next record in the set.intnumRecords()Number of records in the setintpeekID()Return the ID of the next record in the set without advancing the iterator.
-
Constructor Details
-
Method Details
-
hasMore
public boolean hasMore()Description copied from interface:IteratorReturn whether the set has more records to iterate through- Specified by:
hasMorein interfaceIterator<T extends Persistable>- Returns:
- true if there are more records to iterate though.
-
nextID
public int nextID()Description copied from interface:IteratorReturn the ID of the next record in the set. Advance the iteration cursor by one.- Specified by:
nextIDin interfaceIterator<T extends Persistable>- Returns:
- ID of next record
-
nextRecord
Description copied from interface:IteratorReturn the next record in the set. Advance the iteration cursor by one.- Specified by:
nextRecordin interfaceIterator<T extends Persistable>- Returns:
- object representation of next record
-
numRecords
public int numRecords()Description copied from interface:IteratorNumber of records in the set- Specified by:
numRecordsin interfaceIterator<T extends Persistable>- Returns:
- number of records
-
peekID
public int peekID()Description copied from interface:IteratorReturn the ID of the next record in the set without advancing the iterator.- Specified by:
peekIDin interfaceIterator<T extends Persistable>- Returns:
- ID of next record
-