public abstract class IntArrayArray extends DataList
IntArray
s. A good JIT compiler optimizes this such that access it is not slower
as for the pure array. The advantage is, that only the creator who provided the array is allowed to
change it. This class is abstract it leaves the implementation and especially the storage model
to its subclasses.Modifier and Type | Class and Description |
---|---|
static class |
IntArrayArray.Array
This implementation of IntArrayArray stores the data as an array of 2-arrays.
|
static class |
IntArrayArray.Inlined |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
abstract int |
getLengthAt(int n) |
abstract IntArray |
getValueAt(int n) |
abstract int |
getValueAt(int n,
int i) |
IntArrayArray |
toIntArrayArray() |
int[][] |
toIntArrayArray(int[][] target)
Copy the data into the specified array or into a new one
if the target parameter is
null . |
get, getStorageModel, item, readOnlyList, size, toDoubleArray, toDoubleArrayArray, toIntArray, toString
copyTo, copyTo, printUsage, toDoubleArray, toDoubleArrayArray, toIntArray, 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 abstract int getValueAt(int n, int i)
public final int getLength()
public abstract int getLengthAt(int n)
public abstract IntArray getValueAt(int n)
public final IntArrayArray toIntArrayArray()
toIntArrayArray
in class DataList
public int[][] toIntArrayArray(int[][] target)
DataItem
null
. Returns
the filled array.toIntArrayArray
in class DataItem