de.jreality.scene.data
Class DoubleArrayArray
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
de.jreality.scene.data.DataItem
de.jreality.scene.data.DataList
de.jreality.scene.data.DoubleArrayArray
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
- Direct Known Subclasses:
- DoubleArrayArray.Array, DoubleArrayArray.Inlined
public abstract class DoubleArrayArray
- extends DataList
An immutable array of DoubleArray
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 double getValueAt(int n,
int i)
getLength
public abstract int getLength()
getLengthAt
public abstract int getLengthAt(int n)
getValueAt
public abstract DoubleArray getValueAt(int n)
toDoubleArrayArray
public final DoubleArrayArray toDoubleArrayArray()
- Overrides:
toDoubleArrayArray
in class DataList
toDoubleArrayArray
public double[][] toDoubleArrayArray(double[][] 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:
toDoubleArrayArray
in class DataItem