public abstract class RecursiveList<A> extends AbstractList<A>
modCount| Constructor and Description |
|---|
RecursiveList() |
| Modifier and Type | Method and Description |
|---|---|
static <A> RecursiveList<? extends A> |
append(RecursiveList<? extends A> left,
RecursiveList<? extends A> right) |
static <A> RecursiveList<A> |
cons(A first,
RecursiveList<? extends A> rest) |
static <A> RecursiveList<A> |
empty() |
A |
get(int index) |
abstract A |
getFirst() |
abstract RecursiveList<? extends A> |
getRest() |
Iterator<A> |
iterator() |
static <A> RecursiveList<A> |
singleton(A a) |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic abstract A getFirst()
public abstract RecursiveList<? extends A> getRest()
public static <A> RecursiveList<A> cons(A first, RecursiveList<? extends A> rest)
public static <A> RecursiveList<A> empty()
public static <A> RecursiveList<A> singleton(A a)
public A get(int index)
public static <A> RecursiveList<? extends A> append(RecursiveList<? extends A> left, RecursiveList<? extends A> right)
see also the complete user documentation .