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:
java.io.Serializable,java.lang.AutoCloseable
- Enclosing class:
- IntMemoryDataStorage
private class IntMemoryDataStorage.WriteOnlyIterator extends IntMemoryDataStorage.ReadWriteIterator
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description WriteOnlyIterator(long startPosition, long endPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInt()Gets the current element as anint.-
Methods inherited from class org.apfloat.internal.IntMemoryDataStorage.ReadWriteIterator
checkLength, get, hasNext, next, set, setInt
-
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 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.IllegalArgumentExceptionjava.lang.IllegalStateExceptionApfloatRuntimeException
-
-
Method Detail
-
getInt
public int getInt() throws java.lang.IllegalStateExceptionDescription 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:
java.lang.IllegalStateException- If the iterator is at the end.
-
-