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, toStringcopyTo, copyTo, printUsage, toDoubleArrayArray, toIntArrayArray, toStringArray, toStringArray, toStringArrayArray, toStringArrayArrayadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic IntArray(int[] data)
public IntArray(int[] data,
int offset,
int length)
public IntArray toIntArray()
toIntArray in class DataListpublic final int[] toIntArray(int[] target)
DataItemnull. Returns
the filled array.toIntArray in class DataItempublic 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 DataItempublic final int getValueAt(int n)
public final int getLength()