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