public class ChainedList<T>
extends java.util.AbstractList<T>
List
of multiple List
s strung together in a chain.Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
void |
clear() |
static <T> java.util.List<T> |
empty() |
static <T> java.util.List<T> |
from(java.util.List<java.util.List<T>> lists) |
static <T> java.util.List<T> |
from(java.util.List<T>... lists) |
T |
get(int index) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
java.util.ListIterator<T> |
listIterator(int index) |
static <T> java.util.List<T> |
of(T... items) |
static <T> java.util.List<T> |
of(T item) |
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static <T> java.util.List<T> empty()
public static <T> java.util.List<T> of(T item)
public static <T> java.util.List<T> of(T... items)
public static <T> java.util.List<T> from(java.util.List<T>... lists)
public static <T> java.util.List<T> from(java.util.List<java.util.List<T>> lists)
public java.util.Iterator<T> iterator()
public java.util.ListIterator<T> listIterator(int index)
public T get(int index)
public void add(int index, T element)
public T remove(int index)
public boolean addAll(int index, java.util.Collection<? extends T> c)
public int size()
public void clear()