de.jreality.scene.data
Class WritableDataList

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.WritableDataList
All Implemented Interfaces:
Serializable, Iterable, Collection, List

public class WritableDataList
extends DataList

Author:
Holger
See Also:
Serialized Form

Constructor Summary
WritableDataList(StorageModel sm, Object list)
           
WritableDataList(StorageModel sm, Object list, int off, int len)
           
 
Method Summary
 Object getData()
          Get the contained data by reference.
 DataList readOnlyList()
          Return a read only view to this list.
 DoubleArray toDoubleArray()
           
 DoubleArrayArray toDoubleArrayArray()
           
 IntArray toIntArray()
           
 IntArrayArray toIntArrayArray()
           
 
Methods inherited from class de.jreality.scene.data.DataList
get, getStorageModel, item, size, toString
 
Methods inherited from class de.jreality.scene.data.DataItem
copyTo, copyTo, printUsage, toDoubleArray, toDoubleArrayArray, 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

WritableDataList

public WritableDataList(StorageModel sm,
                        Object list)

WritableDataList

public WritableDataList(StorageModel sm,
                        Object list,
                        int off,
                        int len)
Method Detail

getData

public Object getData()
Get the contained data by reference. The object's class depends on the storage model.


readOnlyList

public DataList readOnlyList()
Description copied from class: DataList
Return a read only view to this list. This will return this for DataList classes that do not provide any method with modifying side effects. Writeable instances will create a read only view using the same underlying data reference thus changes to the writable list will propagate immediately to these views. The views might be cached and reused.

Overrides:
readOnlyList in class DataList
Returns:

toDoubleArray

public DoubleArray toDoubleArray()
Overrides:
toDoubleArray in class DataList

toIntArray

public IntArray toIntArray()
Overrides:
toIntArray in class DataList

toIntArrayArray

public IntArrayArray toIntArrayArray()
Overrides:
toIntArrayArray in class DataList

toDoubleArrayArray

public DoubleArrayArray toDoubleArrayArray()
Overrides:
toDoubleArrayArray in class DataList