de.jreality.scene.data
Class WritableDataList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
de.jreality.scene.data.DataItem
de.jreality.scene.data.DataList
de.jreality.scene.data.WritableDataList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
public class WritableDataList
- extends DataList
- Author:
- Holger
- See Also:
- Serialized Form
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 |
WritableDataList
public WritableDataList(StorageModel sm,
java.lang.Object list)
WritableDataList
public WritableDataList(StorageModel sm,
java.lang.Object list,
int off,
int len)
getData
public java.lang.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