Package net.royalur.lut.buffer
Class IntValueBuffer
java.lang.Object
net.royalur.lut.buffer.ValueBuffer
net.royalur.lut.buffer.IntValueBuffer
- Direct Known Subclasses:
UInt16ValueBuffer,UInt32ValueBuffer,UInt64ValueBuffer,UInt8ValueBuffer
Stores binary values and provides efficient methods to manipulate it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDouble(int index) floatgetFloat(int index) abstract intindexOf(byte value, int startIndex, int endIndex) abstract intindexOf(int value, int startIndex, int endIndex) abstract intindexOf(long value, int startIndex, int endIndex) abstract intindexOf(short value, int startIndex, int endIndex) abstract intindexOfBinarySearch(byte value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order.abstract intindexOfBinarySearch(int value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order.abstract intindexOfBinarySearch(long value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order.abstract intindexOfBinarySearch(short value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order.abstract intmoveIntoSortedPlace(int index) Returns the final index that the value was moved to.doubleset(int index, double value) floatset(int index, float value) Methods inherited from class net.royalur.lut.buffer.ValueBuffer
convertTo, getByte, getCapacity, getInt, getLong, getShort, getType, moveIntoPlace, readContents, readContents, set, set, set, set, writeContents, writeContents
-
Constructor Details
-
IntValueBuffer
-
-
Method Details
-
set
public double set(int index, double value) - Specified by:
setin classValueBuffer
-
set
public float set(int index, float value) - Specified by:
setin classValueBuffer
-
getDouble
public double getDouble(int index) - Specified by:
getDoublein classValueBuffer
-
getFloat
public float getFloat(int index) - Specified by:
getFloatin classValueBuffer
-
indexOf
public abstract int indexOf(long value, int startIndex, int endIndex) -
indexOf
public abstract int indexOf(int value, int startIndex, int endIndex) -
indexOf
public abstract int indexOf(short value, int startIndex, int endIndex) -
indexOf
public abstract int indexOf(byte value, int startIndex, int endIndex) -
indexOfBinarySearch
public abstract int indexOfBinarySearch(long value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order. -
indexOfBinarySearch
public abstract int indexOfBinarySearch(int value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order. -
indexOfBinarySearch
public abstract int indexOfBinarySearch(short value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order. -
indexOfBinarySearch
public abstract int indexOfBinarySearch(byte value, int startIndex, int endIndex) Expects the buffer to be sorted in unsigned ascending order. -
moveIntoSortedPlace
public abstract int moveIntoSortedPlace(int index) Returns the final index that the value was moved to.
-