public class ImmutableList<E>
extends java.lang.Object
implements java.lang.Iterable<E>
Modifier and Type | Field and Description |
---|---|
E |
head |
ImmutableList<E> |
tail |
Constructor and Description |
---|
ImmutableList(E data,
ImmutableList<E> tail) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(E object) |
java.util.Iterator<E> |
iterator() |
public final E head
public final ImmutableList<E> tail
public ImmutableList(E data, ImmutableList<E> tail)