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 Form| Modifier 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, toStringArrayArrayadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic StorageModel getStorageModel()
getStorageModel in class DataItempublic Object get(int index)
get in interface Listget in class AbstractListpublic DataItem item(int index)
public int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic IntArray toIntArray()
toIntArray in class DataItempublic IntArrayArray toIntArrayArray()
toIntArrayArray in class DataItempublic DoubleArray toDoubleArray()
toDoubleArray in class DataItempublic 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