| Constructor and Description |
|---|
ImmutableList() |
ImmutableList(List<T> list) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<T> |
add(T value) |
static <T> ImmutableList<T> |
empty() |
T |
first() |
Iterator<T> |
iterator() |
T |
last() |
static <T> ImmutableList<T> |
of(T... values) |
T |
secondLast() |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ImmutableList<T> add(T value)
@SafeVarargs public static <T> ImmutableList<T> of(T... values)
public static <T> ImmutableList<T> empty()
public T last()
public T first()
public T secondLast()
public int size()
Copyright © 2023. All rights reserved.