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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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 © 2018 Hitachi Vantara. All rights reserved.