public class IntArray extends DataList
Constructor and Description |
---|
IntArray(int[] data) |
IntArray(int[] data,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
int |
getValueAt(int n) |
double[] |
toDoubleArray(double[] target)
Copies all entries of the underlying array into the
target
parameter or into a new array using widening conversion for each entry. |
IntArray |
toIntArray() |
int[] |
toIntArray(int[] target)
Copy the data into the specified array or into a new one
if the target parameter is
null . |
ByteBuffer |
toNativeByteBuffer(ByteBuffer bb)
copies the containing data into a given or native ByteBuffer
JUST FOR TESTING |
get, getStorageModel, item, readOnlyList, size, toDoubleArray, toDoubleArrayArray, toIntArrayArray, toString
copyTo, copyTo, printUsage, toDoubleArrayArray, toIntArrayArray, toStringArray, toStringArray, toStringArrayArray, toStringArrayArray
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public IntArray(int[] data)
public IntArray(int[] data, int offset, int length)
public IntArray toIntArray()
toIntArray
in class DataList
public final int[] toIntArray(int[] target)
DataItem
null
. Returns
the filled array.toIntArray
in class DataItem
public final ByteBuffer toNativeByteBuffer(ByteBuffer bb)
bb
- public final double[] toDoubleArray(double[] target)
target
parameter or into a new array using widening conversion for each entry.
Return the target array.toDoubleArray
in class DataItem
public final int getValueAt(int n)
public final int getLength()