T - element typepublic class CompositeList<T> extends AbstractList<T>
modCount| Constructor and Description |
|---|
CompositeList(List<? extends T>... lists)
Creates a composite list.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index) |
static <T> CompositeList<T> |
of(List<? extends T>... lists)
Creates a composite list, inferring the element type from the arguments.
|
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static <T> CompositeList<T> of(List<? extends T>... lists)
T - element typelists - One or more listspublic T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>Copyright © 2021 Hitachi Vantara. All rights reserved.