Package net.royalur.lut.buffer
Class Float64ValueBuffer
java.lang.Object
net.royalur.lut.buffer.ValueBuffer
net.royalur.lut.buffer.FloatValueBuffer
net.royalur.lut.buffer.Float64ValueBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getDouble
(int index) float
getFloat
(int index) void
moveIntoPlace
(int index, int targetIndex) Moves the value to targetIndex, and shifts all values in between.void
readContents
(DataSource input, int startIndex, int endIndex) double
set
(int index, double value) float
set
(int index, float value) void
writeContents
(DataSink output, int startIndex, int endIndex) Methods inherited from class net.royalur.lut.buffer.FloatValueBuffer
getByte, getInt, getLong, getShort, set, set, set, set
Methods inherited from class net.royalur.lut.buffer.ValueBuffer
getCapacity, getType, readContents, writeContents
-
Constructor Details
-
Float64ValueBuffer
public Float64ValueBuffer(int capacity)
-
-
Method Details
-
set
public double set(int index, double value) - Specified by:
set
in classValueBuffer
-
set
public float set(int index, float value) - Specified by:
set
in classValueBuffer
-
getDouble
public double getDouble(int index) - Specified by:
getDouble
in classValueBuffer
-
getFloat
public float getFloat(int index) - Specified by:
getFloat
in classValueBuffer
-
moveIntoPlace
public void moveIntoPlace(int index, int targetIndex) Description copied from class:ValueBuffer
Moves the value to targetIndex, and shifts all values in between.- Specified by:
moveIntoPlace
in classValueBuffer
-
writeContents
- Specified by:
writeContents
in classValueBuffer
- Throws:
IOException
-
readContents
- Specified by:
readContents
in classValueBuffer
- Throws:
IOException
-