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
public CompositeList(List<? extends T>... lists)
lists
- Component listspublic static <T> CompositeList<T> of(List<? extends T>... lists)
T
- element typelists
- One or more listspublic int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>