Package org.apfloat.internal
Class LongMemoryDataStorage.ReadOnlyIterator
java.lang.Object
org.apfloat.spi.DataStorage.Iterator
org.apfloat.spi.DataStorage.AbstractIterator
org.apfloat.internal.LongMemoryDataStorage.ReadWriteIterator
org.apfloat.internal.LongMemoryDataStorage.ReadOnlyIterator
- All Implemented Interfaces:
Serializable,AutoCloseable
- Enclosing class:
LongMemoryDataStorage
private class LongMemoryDataStorage.ReadOnlyIterator
extends LongMemoryDataStorage.ReadWriteIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apfloat.internal.LongMemoryDataStorage.ReadWriteIterator
checkLength, get, getLong, hasNext, next, setMethods 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
-
ReadOnlyIterator
public ReadOnlyIterator(long startPosition, long endPosition) throws IllegalArgumentException, IllegalStateException, ApfloatRuntimeException
-
-
Method Details
-
setLong
Description copied from class:DataStorage.IteratorSets the current element as along.The default implementation calls
DataStorage.Iterator.set(Class,Object)with first argumentLong.TYPE.- Overrides:
setLongin classLongMemoryDataStorage.ReadWriteIterator- Parameters:
value- The value to be set to the current element as along.- Throws:
IllegalStateException- If the iterator is at the end.
-