public abstract class ImmutableList<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Constructor and Description |
---|
ImmutableList() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
abstract T |
head() |
abstract boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
static <T> ImmutableList<T> |
nil() |
ImmutableList<T> |
prepend(T element) |
int |
size() |
abstract ImmutableList<T> |
tail() |
java.lang.String |
toString() |
public abstract T head()
public abstract ImmutableList<T> tail()
public abstract boolean isEmpty()
public final int size()
public ImmutableList<T> prepend(T element)
public static <T> ImmutableList<T> nil()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.