Package org.apfloat.internal
Class LongMemoryDataStorage.WriteOnlyIterator
java.lang.Object
org.apfloat.spi.DataStorage.Iterator
org.apfloat.spi.DataStorage.AbstractIterator
org.apfloat.internal.LongMemoryDataStorage.ReadWriteIterator
org.apfloat.internal.LongMemoryDataStorage.WriteOnlyIterator
- All Implemented Interfaces:
Serializable,AutoCloseable
- Enclosing class:
LongMemoryDataStorage
private class LongMemoryDataStorage.WriteOnlyIterator
extends LongMemoryDataStorage.ReadWriteIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apfloat.internal.LongMemoryDataStorage.ReadWriteIterator
checkLength, get, hasNext, next, set, setLongMethods inherited from class org.apfloat.spi.DataStorage.AbstractIterator
checkGet, checkSet, getDouble, getFloat, getIncrement, getInt, getLength, getMode, getPosition, setDouble, setFloat, setIntMethods 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
-
getLong
Description copied from class:DataStorage.IteratorGets the current element as along.The default implementation calls
DataStorage.Iterator.get(Class)with argumentLong.TYPE.- Overrides:
getLongin classLongMemoryDataStorage.ReadWriteIterator- Returns:
- The current element as a
long. - Throws:
IllegalStateException- If the iterator is at the end.
-