de.jreality.scene.data
Class DoubleArrayArray.Array

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by de.jreality.scene.data.DataItem
              extended by de.jreality.scene.data.DataList
                  extended by de.jreality.scene.data.DoubleArrayArray
                      extended by de.jreality.scene.data.DoubleArrayArray.Array
All Implemented Interfaces:
Serializable, Iterable, Collection, List
Enclosing class:
DoubleArrayArray

public static final class DoubleArrayArray.Array
extends DoubleArrayArray

This implementation of DoubleArrayArray stores the data as an array of 2-arrays.

Version:
1.0
Author:
Tim Hoffmann
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jreality.scene.data.DoubleArrayArray
DoubleArrayArray.Array, DoubleArrayArray.Inlined
 
Constructor Summary
DoubleArrayArray.Array(double[][] data)
           
DoubleArrayArray.Array(double[][] data, int numPerEntry)
           
 
Method Summary
 int getLength()
           
 int getLengthAt(int n)
           
 DoubleArray getValueAt(int n)
           
 double getValueAt(int n, int i)
           
 DataItem item(int index)
           
 
Methods inherited from class de.jreality.scene.data.DoubleArrayArray
toDoubleArrayArray, toDoubleArrayArray
 
Methods inherited from class de.jreality.scene.data.DataList
get, getStorageModel, readOnlyList, size, toDoubleArray, toIntArray, toIntArrayArray, toString
 
Methods inherited from class de.jreality.scene.data.DataItem
copyTo, copyTo, printUsage, toDoubleArray, toIntArray, toIntArrayArray, toStringArray, toStringArray, toStringArrayArray, toStringArrayArray
 
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
 

Constructor Detail

DoubleArrayArray.Array

public DoubleArrayArray.Array(double[][] data)

DoubleArrayArray.Array

public DoubleArrayArray.Array(double[][] data,
                              int numPerEntry)
Method Detail

getValueAt

public double getValueAt(int n,
                         int i)
Specified by:
getValueAt in class DoubleArrayArray

getLength

public int getLength()
Specified by:
getLength in class DoubleArrayArray

getLengthAt

public int getLengthAt(int n)
Specified by:
getLengthAt in class DoubleArrayArray

getValueAt

public DoubleArray getValueAt(int n)
Specified by:
getValueAt in class DoubleArrayArray

item

public DataItem item(int index)
Overrides:
item in class DataList