T
- item typepublic class CompositeList<T> extends java.util.AbstractList<T>
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends T> |
a |
private java.util.List<? extends T> |
b |
Constructor and Description |
---|
CompositeList(java.util.List<? extends T> a,
java.util.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
public CompositeList(java.util.List<? extends T> a, java.util.List<? extends T> b)
CompositeList
from two lists.a
- First listb
- Second list