de.jreality.scene.data
Class IntArrayArray
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
de.jreality.scene.data.DataItem
de.jreality.scene.data.DataList
de.jreality.scene.data.IntArrayArray
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
- Direct Known Subclasses:
- IntArrayArray.Array, IntArrayArray.Inlined
public abstract class IntArrayArray
- extends DataList
An immutable array of 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.
- Version:
- 1.0
- Author:
- Tim Hoffmann
- See Also:
- Serialized Form
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
getValueAt
public abstract int getValueAt(int n,
int i)
getLength
public final int getLength()
getLengthAt
public abstract int getLengthAt(int n)
getValueAt
public abstract IntArray getValueAt(int n)
toIntArrayArray
public final IntArrayArray toIntArrayArray()
- Overrides:
toIntArrayArray
in class DataList
toIntArrayArray
public int[][] toIntArrayArray(int[][] target)
- Description copied from class:
DataItem
- Copy the data into the specified array or into a new one
if the target parameter is
null
. Returns
the filled array.
- Overrides:
toIntArrayArray
in class DataItem