Package eu.bandm.tools.ops
Class RecursiveList<A>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<A>
eu.bandm.tools.ops.RecursiveList<A>
- All Implemented Interfaces:
Iterable<A>
,Collection<A>
,List<A>
DOCME
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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()
get
(int index) abstract A
getFirst()
abstract RecursiveList<? extends A>
getRest()
iterator()
static <A> RecursiveList<A>
singleton
(A a) Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
RecursiveList
public RecursiveList()
-
-
Method Details
-
getFirst
-
getRest
-
cons
-
empty
-
singleton
-
iterator
-
get
-
append
public static <A> RecursiveList<? extends A> append(RecursiveList<? extends A> left, RecursiveList<? extends A> right)
-