INSTANCE - the type of instances in the datasetpublic interface ListDataset<INSTANCE> extends Dataset<INSTANCE>, List<INSTANCE>
ListDataset is a Dataset presented as an ordered list of
instances. For convenience it extends the List interface; note
however, that many dataset implementations will be read-only.| Modifier and Type | Method and Description |
|---|---|
INSTANCE |
getInstance(int index)
Returns the instance at the specified position in this dataset.
|
getRandomInstance, numInstancesadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamINSTANCE getInstance(int index)
index - index of the instance to returnIndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())