public class DataList extends DataItem implements Serializable
storage model
for the data.
This list is readonly. There are several methods allowing to open
another view to the same list using a different storage model or using
an explicitly declared storage model for higher performance.
These methods might return the same instance using a more specific declared
type if the storage model matches that type. They might convert the data
into a different but compatible storage model. And they throw a
UnsupportedOperationException
for incompatible models.List
,
StorageModel
,
#Item
,
Serialized FormModifier and Type | Method and Description |
---|---|
Object |
get(int index) |
StorageModel |
getStorageModel() |
DataItem |
item(int index) |
DataList |
readOnlyList()
Return a read only view to this list.
|
int |
size() |
DoubleArray |
toDoubleArray() |
DoubleArrayArray |
toDoubleArrayArray() |
IntArray |
toIntArray() |
IntArrayArray |
toIntArrayArray() |
String |
toString() |
copyTo, copyTo, printUsage, toDoubleArray, toDoubleArrayArray, toIntArray, toIntArrayArray, toStringArray, toStringArray, toStringArrayArray, toStringArrayArray
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public StorageModel getStorageModel()
getStorageModel
in class DataItem
public Object get(int index)
get
in interface List
get
in class AbstractList
public DataItem item(int index)
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public IntArray toIntArray()
toIntArray
in class DataItem
public IntArrayArray toIntArrayArray()
toIntArrayArray
in class DataItem
public DoubleArray toDoubleArray()
toDoubleArray
in class DataItem
public DoubleArrayArray toDoubleArrayArray()
public DataList readOnlyList()
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.public String toString()
toString
in class AbstractCollection