public static class ObjectLists.UnmodifiableRandomAccessList<K> extends ObjectLists.UnmodifiableList<K> implements RandomAccess, Serializable
listcollection| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableRandomAccessList(ObjectList<K> l) |
| Modifier and Type | Method and Description |
|---|---|
ObjectList<K> |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index
from, inclusive, to the index to, exclusive. |
add, addAll, addElements, addElements, compareTo, equals, get, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeElements, set, setElements, setElements, setElements, size, sort, unstableSortadd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected UnmodifiableRandomAccessList(ObjectList<K> l)
public ObjectList<K> subList(int from, int to)
ObjectListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface ObjectList<K>subList in interface List<K>subList in class ObjectLists.UnmodifiableList<K>List.subList(int,int)Copyright © 2020. All rights reserved.