public static class ReferenceLists.UnmodifiableRandomAccessList<K> extends ReferenceLists.UnmodifiableList<K> implements RandomAccess, Serializable
listcollection| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableRandomAccessList(ReferenceList<K> l) |
| Modifier and Type | Method and Description |
|---|---|
ReferenceList<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, 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(ReferenceList<K> l)
public ReferenceList<K> subList(int from, int to)
ReferenceListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface ReferenceList<K>subList in interface List<K>subList in class ReferenceLists.UnmodifiableList<K>List.subList(int,int)Copyright © 2020. All rights reserved.