All Methods Static Methods Instance Methods Abstract Methods Default Methods
| Modifier and Type |
Method and Description |
Sequence<E> |
append(E element) |
Sequence<E> |
appendAll(Sequence<E> other) |
static <E> ImmutableArray<E> |
arrayOf(E... elements) |
default ImmutableArray<E> |
asArray() |
default ImmutableList<E> |
asList() |
default ImmutableSet<E> |
asSet() |
static <E> java.util.stream.Stream<E> |
asStream(java.util.Iterator<E> iterator) |
default ImmutableTree<E> |
asTree() |
boolean |
contains(E element) |
Sequence<E> |
filter(Matcher1<E> matcher) |
<R> Sequence<R> |
flatMap(Function1<E,? extends Higher1<Sequence.µ,R>> mapper) |
default <V> Sequence<V> |
flatten() |
default E |
fold(E initial,
Operator2<E> operator) |
default <U> U |
foldLeft(U initial,
Function2<U,E,U> combinator) |
default <U> U |
foldRight(U initial,
Function2<E,U,U> combinator) |
default <G> ImmutableMap<G,ImmutableList<E>> |
groupBy(Function1<E,G> selector) |
default boolean |
isEmpty() |
static <E> ImmutableList<E> |
listOf(E... elements) |
<R> Sequence<R> |
map(Function1<E,R> mapper) |
static <T> Sequence<T> |
narrowK(Higher1<Sequence.µ,T> hkt) |
default Option<E> |
reduce(Operator2<E> operator) |
Sequence<E> |
remove(E element) |
Sequence<E> |
removeAll(Sequence<E> other) |
Sequence<E> |
reverse() |
static <E> ImmutableSet<E> |
setOf(E... elements) |
int |
size() |
default java.util.stream.Stream<E> |
stream() |
static <E> ImmutableTree<E> |
treeOf(E... elements) |