Package org.apfloat.internal
Class IntMemoryDataStorage.ReadOnlyIterator
java.lang.Object
org.apfloat.spi.DataStorage.Iterator
org.apfloat.spi.DataStorage.AbstractIterator
org.apfloat.internal.IntMemoryDataStorage.ReadWriteIterator
org.apfloat.internal.IntMemoryDataStorage.ReadOnlyIterator
- All Implemented Interfaces:
Serializable
,AutoCloseable
- Enclosing class:
IntMemoryDataStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apfloat.internal.IntMemoryDataStorage.ReadWriteIterator
checkLength, get, getInt, hasNext, next, set
Methods inherited from class org.apfloat.spi.DataStorage.AbstractIterator
checkGet, checkSet, getDouble, getFloat, getIncrement, getLength, getLong, getMode, getPosition, setDouble, setFloat, setLong
Methods 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
-
setInt
Description copied from class:DataStorage.Iterator
Sets the current element as anint
.The default implementation calls
DataStorage.Iterator.set(Class,Object)
with first argumentInteger.TYPE
.- Overrides:
setInt
in classIntMemoryDataStorage.ReadWriteIterator
- Parameters:
value
- The value to be set to the current element as anint
.- Throws:
IllegalStateException
- If the iterator is at the end.
-