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:
- Serializable, Iterable, Collection, 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 |
WritableDataList
public WritableDataList(StorageModel sm,
Object list)
WritableDataList
public WritableDataList(StorageModel sm,
Object list,
int off,
int len)
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