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 Details

  • Method Details

    • hasMore

      public boolean hasMore()
      Description copied from interface: Iterator
      Return whether the set has more records to iterate through
      Specified by:
      hasMore in interface Iterator<T extends Persistable>
      Returns:
      true if there are more records to iterate though.
    • nextID

      public int nextID()
      Description copied from interface: Iterator
      Return the ID of the next record in the set. Advance the iteration cursor by one.
      Specified by:
      nextID in interface Iterator<T extends Persistable>
      Returns:
      ID of next record
    • nextRecord

      public T nextRecord()
      Description copied from interface: Iterator
      Return the next record in the set. Advance the iteration cursor by one.
      Specified by:
      nextRecord in interface Iterator<T extends Persistable>
      Returns:
      object representation of next record
    • numRecords

      public int numRecords()
      Description copied from interface: Iterator
      Number of records in the set
      Specified by:
      numRecords in interface Iterator<T extends Persistable>
      Returns:
      number of records
    • peekID

      public int peekID()
      Description copied from interface: Iterator
      Return the ID of the next record in the set without advancing the iterator.
      Specified by:
      peekID in interface Iterator<T extends Persistable>
      Returns:
      ID of next record