public interface ImmutableList<E> extends Sequence<E>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ImmutableList.JavaBasedImmutableList<E> |
Sequence.µ| Modifier and Type | Method and Description |
|---|---|
ImmutableList<E> |
append(E element) |
ImmutableList<E> |
appendAll(Sequence<E> other) |
default ImmutableList<E> |
drop(int n) |
static <T> ImmutableList<T> |
empty() |
default ImmutableList<E> |
filter(Matcher1<E> matcher) |
default <R> ImmutableList<R> |
flatMap(Function1<E,? extends Higher1<Sequence.µ,R>> mapper) |
static <T> ImmutableList<T> |
from(java.lang.Iterable<T> iterable) |
static <T> ImmutableList<T> |
from(java.util.stream.Stream<T> stream) |
default Option<E> |
head() |
default <R> ImmutableList<R> |
map(Function1<E,R> mapper) |
static <T> ImmutableList<T> |
of(T... elements) |
ImmutableList<E> |
remove(E element) |
ImmutableList<E> |
removeAll(Sequence<E> other) |
ImmutableList<E> |
reverse() |
ImmutableList<E> |
sort(java.util.Comparator<E> comparator) |
default ImmutableList<E> |
tail() |
java.util.List<E> |
toList() |
java.util.List<E> toList()
ImmutableList<E> appendAll(Sequence<E> other)
ImmutableList<E> removeAll(Sequence<E> other)
ImmutableList<E> reverse()
ImmutableList<E> sort(java.util.Comparator<E> comparator)
default ImmutableList<E> tail()
default ImmutableList<E> drop(int n)
default <R> ImmutableList<R> map(Function1<E,R> mapper)
default <R> ImmutableList<R> flatMap(Function1<E,? extends Higher1<Sequence.µ,R>> mapper)
default ImmutableList<E> filter(Matcher1<E> matcher)
static <T> ImmutableList<T> from(java.lang.Iterable<T> iterable)
static <T> ImmutableList<T> from(java.util.stream.Stream<T> stream)
@SafeVarargs static <T> ImmutableList<T> of(T... elements)
static <T> ImmutableList<T> empty()