Package org.apfloat.internal
Class IntMemoryDataStorage.WriteOnlyIterator
java.lang.Object
org.apfloat.spi.DataStorage.Iterator
org.apfloat.spi.DataStorage.AbstractIterator
org.apfloat.internal.IntMemoryDataStorage.ReadWriteIterator
org.apfloat.internal.IntMemoryDataStorage.WriteOnlyIterator
- 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, hasNext, next, set, setIntMethods inherited from class org.apfloat.spi.DataStorage.AbstractIterator
checkGet, checkSet, getDouble, getFloat, getIncrement, getLength, getLong, getMode, getPosition, setDouble, setFloat, setLongMethods 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
-
getInt
Description copied from class:DataStorage.IteratorGets the current element as anint.The default implementation calls
DataStorage.Iterator.get(Class)with argumentInteger.TYPE.- Overrides:
getIntin classIntMemoryDataStorage.ReadWriteIterator- Returns:
- The current element as an
int. - Throws:
IllegalStateException- If the iterator is at the end.
-