public class ImmutableList<T> extends Object
| Constructor and Description |
|---|
ImmutableList() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<T> |
add(ImmutableList<T> list) |
ImmutableList<T> |
add(T head) |
static <T> ImmutableList<T> |
create(T head) |
static <T> ImmutableList<T> |
create(T[] array) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
String |
toString() |
public final T head
public final ImmutableList<T> tail
public final long size
public static <T> ImmutableList<T> create(T head)
public static <T> ImmutableList<T> create(T[] array)
public ImmutableList<T> add(T head)
public ImmutableList<T> add(ImmutableList<T> list)
public boolean isEmpty()
Copyright © 2017. All rights reserved.