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:
java.io.Serializable
,java.lang.AutoCloseable
- Enclosing class:
- DoubleMemoryDataStorage
private class DoubleMemoryDataStorage.WriteOnlyIterator extends DoubleMemoryDataStorage.ReadWriteIterator
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description WriteOnlyIterator(long startPosition, long endPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDouble()
Gets the current element as adouble
.-
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WriteOnlyIterator
public WriteOnlyIterator(long startPosition, long endPosition) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, ApfloatRuntimeException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
ApfloatRuntimeException
-
-
Method Detail
-
getDouble
public double getDouble() throws java.lang.IllegalStateException
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:
java.lang.IllegalStateException
- If the iterator is at the end.
-
-