public interface ImmutableSet<E> extends Sequence<E>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ImmutableSet.JavaBasedImmutableSet<E> |
Sequence.µ| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<E> |
append(E element) |
ImmutableSet<E> |
appendAll(Sequence<E> other) |
ImmutableSet<E> |
difference(ImmutableSet<E> other) |
static <T> ImmutableSet<T> |
empty() |
default ImmutableSet<E> |
filter(Matcher1<E> matcher) |
default <R> ImmutableSet<R> |
flatMap(Function1<E,? extends Higher1<Sequence.µ,R>> mapper) |
static <T> ImmutableSet<T> |
from(java.lang.Iterable<T> iterable) |
static <T> ImmutableSet<T> |
from(java.util.stream.Stream<T> stream) |
ImmutableSet<E> |
intersection(ImmutableSet<E> other) |
default <R> ImmutableSet<R> |
map(Function1<E,R> mapper) |
static <T> ImmutableSet<T> |
of(T... elements) |
ImmutableSet<E> |
remove(E element) |
ImmutableSet<E> |
removeAll(Sequence<E> other) |
ImmutableSet<E> |
reverse() |
java.util.Set<E> |
toSet() |
ImmutableSet<E> |
union(ImmutableSet<E> other) |
java.util.Set<E> toSet()
ImmutableSet<E> appendAll(Sequence<E> other)
ImmutableSet<E> removeAll(Sequence<E> other)
ImmutableSet<E> reverse()
ImmutableSet<E> union(ImmutableSet<E> other)
ImmutableSet<E> intersection(ImmutableSet<E> other)
ImmutableSet<E> difference(ImmutableSet<E> other)
default <R> ImmutableSet<R> map(Function1<E,R> mapper)
default <R> ImmutableSet<R> flatMap(Function1<E,? extends Higher1<Sequence.µ,R>> mapper)
default ImmutableSet<E> filter(Matcher1<E> matcher)
static <T> ImmutableSet<T> from(java.lang.Iterable<T> iterable)
static <T> ImmutableSet<T> from(java.util.stream.Stream<T> stream)
@SafeVarargs static <T> ImmutableSet<T> of(T... elements)
static <T> ImmutableSet<T> empty()