Class DataStorage.Iterator

java.lang.Object
org.apfloat.spi.DataStorage.Iterator
All Implemented Interfaces:
Serializable, AutoCloseable
Direct Known Subclasses:
DataStorage.AbstractIterator
Enclosing class:
DataStorage

public abstract static class DataStorage.Iterator extends Object implements Serializable, AutoCloseable
Iterator for iterating through elements of the data storage.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the iterator.
    <T> T
    get(Class<T> type)
    Gets the current element as a the specified element type.
    double
    Gets the current element as a double.
    float
    Gets the current element as a float.
    int
    Gets the current element as an int.
    long
    Gets the current element as a long.
    boolean
    Check if next() can be called without going past the end of the sequence.
    void
    Advances the position in the stream by one element.
    <T> void
    set(Class<T> type, T value)
    Sets the current element as the specified element type.
    void
    setDouble(double value)
    Sets the current element as a double.
    void
    setFloat(float value)
    Sets the current element as a float.
    void
    setInt(int value)
    Sets the current element as an int.
    void
    setLong(long value)
    Sets the current element as a long.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait