T - The type of the list's elements.public class CompoundList<T> extends AbstractList<T>
modCount| Modifier | Constructor and Description | 
|---|---|
| protected  | CompoundList(List<? extends T> left,
            List<? extends T> right)Creates a new compound list. | 
| Modifier and Type | Method and Description | 
|---|---|
| T | get(int index) | 
| static <S> List<S> | of(List<? extends S> left,
  List<? extends S> right)Creates a list of a left and right list. | 
| static <S> List<S> | of(List<? extends S> left,
  S right)Creates a list of a list and an element. | 
| static <S> List<S> | of(S left,
  List<? extends S> right)Creates a list of a single element and another list. | 
| 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 <S> List<S> of(S left, List<? extends S> right)
S - The type of the list's elements.left - The left element.right - The right list.public static <S> List<S> of(List<? extends S> left, S right)
S - The type of the list's elements.left - The left left.right - The right element.public static <S> List<S> of(List<? extends S> left, List<? extends S> right)
S - The type of the list's elements.left - The left list.right - The right list.public T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>Copyright © 2014–2016. All rights reserved.