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