Package com.github.tonivade.purefun.data
Interface ImmutableArray<E>
- Type Parameters:
E- the type of elements in this array
- All Superinterfaces:
Bindable<Sequence<?>,,E> Iterable<E>,Kind<Sequence<?>,,E> Mappable<Sequence<?>,,E> Sequence<E>,SequenceOf<E>
- All Known Implementing Classes:
ImmutableArray.PImmutableArray
Similar to a ArrayList
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondrop(int n) static <T> ImmutableArray<T> empty()default ImmutableArray<E> default ImmutableArray<E> default <R> ImmutableArray<R> static <T> ImmutableArray<T> static <T> ImmutableArray<T> get(int position) default <R> ImmutableArray<R> static <T> ImmutableArray<T> of(T... elements) remove(int position) reverse()sort(Comparator<? super E> comparator) static <E> Collector<E, ?, ImmutableArray<E>> toList()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.github.tonivade.purefun.data.Sequence
asArray, asList, asSet, asTree, asTree, collect, contains, containsAll, findFirst, fold, foldLeft, foldRight, groupBy, isEmpty, join, join, join, reduce, size, stream, toArray, toCollection, toSequencedCollection, zipWithIndex
-
Method Details
-
toList
-
append
-
remove
-
appendAll
-
removeAll
-
reverse
ImmutableArray<E> reverse() -
sort
-
get
-
remove
-
replace
-
insert
-
insertAll
-
drop
-
dropWhile
-
takeWhile
-
map
-
flatMap
default <R> ImmutableArray<R> flatMap(Function1<? super E, ? extends Kind<Sequence<?>, ? extends R>> mapper) -
filter
-
filterNot
-
from
-
from
-
of
-
empty
-
toImmutableArray
-