T
- item typepublic class CompositeList<T> extends AbstractList<T>
Modifier and Type | Field and Description |
---|---|
private List<? extends T> |
a |
private List<? extends T> |
b |
modCount
Constructor and Description |
---|
CompositeList(List<? extends T> a,
List<? extends T> b)
Constructs a new
CompositeList from two lists. |
Modifier and Type | Method and Description |
---|---|
T |
get(int index) |
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 CompositeList(List<? extends T> a, List<? extends T> b)
CompositeList
from two lists.a
- First listb
- Second list