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:
java.io.Serializable
,java.lang.AutoCloseable
- Enclosing class:
- LongMemoryDataStorage
private class LongMemoryDataStorage.ReadOnlyIterator extends LongMemoryDataStorage.ReadWriteIterator
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ReadOnlyIterator(long startPosition, long endPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setLong(long value)
Sets the current element as along
.-
Methods inherited from class org.apfloat.internal.LongMemoryDataStorage.ReadWriteIterator
checkLength, get, getLong, hasNext, next, set
-
Methods inherited from class org.apfloat.spi.DataStorage.AbstractIterator
checkGet, checkSet, getDouble, getFloat, getIncrement, getInt, getLength, getMode, getPosition, setDouble, setFloat, setInt
-
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
-
ReadOnlyIterator
public ReadOnlyIterator(long startPosition, long endPosition) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, ApfloatRuntimeException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
ApfloatRuntimeException
-
-
Method Detail
-
setLong
public void setLong(long value) throws java.lang.IllegalStateException
Description copied from class:DataStorage.Iterator
Sets the current element as along
.The default implementation calls
DataStorage.Iterator.set(Class,Object)
with first argumentLong.TYPE
.- Overrides:
setLong
in classLongMemoryDataStorage.ReadWriteIterator
- Parameters:
value
- The value to be set to the current element as along
.- Throws:
java.lang.IllegalStateException
- If the iterator is at the end.
-
-