Package org.apfloat.internal
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apfloat.internal.DoubleMemoryDataStorage.ReadWriteIterator
checkLength, get, hasNext, next, set, setDouble
Methods inherited from class org.apfloat.spi.DataStorage.AbstractIterator
checkGet, checkSet, getFloat, getIncrement, getInt, getLength, getLong, getMode, getPosition, setFloat, setInt, setLong
Methods inherited from class org.apfloat.spi.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.Iterator
Gets the current element as adouble
.The default implementation calls
DataStorage.Iterator.get(Class)
with argumentDouble.TYPE
.- Overrides:
getDouble
in classDoubleMemoryDataStorage.ReadWriteIterator
- Returns:
- The current element as a
double
. - Throws:
IllegalStateException
- If the iterator is at the end.
-