Class DoubleMemoryDataStorage.WriteOnlyIterator
java.lang.Object
org.apfloat.spi.DataStorage.Iterator
org.apfloat.spi.DataStorage.AbstractIterator
org.apfloat.internal.DoubleMemoryDataStorage.ReadWriteIterator
org.apfloat.internal.DoubleMemoryDataStorage.WriteOnlyIterator
- All Implemented Interfaces:
Serializable, AutoCloseable
- Enclosing class:
DoubleMemoryDataStorage
private class DoubleMemoryDataStorage.WriteOnlyIterator
extends DoubleMemoryDataStorage.ReadWriteIterator
- Version:
- 1.9.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DoubleMemoryDataStorage.ReadWriteIterator
checkLength, get, hasNext, next, set, setDoubleMethods inherited from class DataStorage.AbstractIterator
checkGet, checkSet, getFloat, getIncrement, getInt, getLength, getLong, getMode, getPosition, setFloat, setInt, setLongMethods inherited from class DataStorage.Iterator
close
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
WriteOnlyIterator
public WriteOnlyIterator(long startPosition, long endPosition) throws IllegalArgumentException, IllegalStateException, ApfloatRuntimeException
-
-
Method Details
-
getDouble
Description copied from class:DataStorage.IteratorGets the current element as adouble.The default implementation calls
DataStorage.Iterator.get(Class)with argumentDouble.TYPE.- Overrides:
getDoublein classDoubleMemoryDataStorage.ReadWriteIterator- Returns:
- The current element as a
double. - Throws:
IllegalStateException- If the iterator is at the end.
-