public interface ImmutableSetFactory
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableSet<T> |
empty() |
default <T> ImmutableSet<T> |
fromStream(Stream<? extends T> stream) |
<T> ImmutableSet<T> |
of()
Same as
empty(). |
<T> ImmutableSet<T> |
of(T... items)
Same as
with(Object[]). |
<T> ImmutableSet<T> |
of(T one)
Same as
with(Object). |
<T> ImmutableSet<T> |
of(T one,
T two)
Same as
with(Object, Object). |
<T> ImmutableSet<T> |
of(T one,
T two,
T three)
Same as
with(Object, Object, Object). |
<T> ImmutableSet<T> |
of(T one,
T two,
T three,
T four)
Same as
with(Object, Object, Object, Object). |
<T> ImmutableSet<T> |
ofAll(Iterable<? extends T> items)
Same as
withAll(Iterable). |
<T> ImmutableSet<T> |
with()
Same as
empty(). |
<T> ImmutableSet<T> |
with(T... items) |
<T> ImmutableSet<T> |
with(T one) |
<T> ImmutableSet<T> |
with(T one,
T two) |
<T> ImmutableSet<T> |
with(T one,
T two,
T three) |
<T> ImmutableSet<T> |
with(T one,
T two,
T three,
T four) |
<T> ImmutableSet<T> |
withAll(Iterable<? extends T> items) |
<T> ImmutableSet<T> empty()
<T> ImmutableSet<T> of()
empty().<T> ImmutableSet<T> with()
empty().<T> ImmutableSet<T> of(T one)
with(Object).<T> ImmutableSet<T> with(T one)
<T> ImmutableSet<T> of(T one, T two)
with(Object, Object).<T> ImmutableSet<T> with(T one, T two)
<T> ImmutableSet<T> of(T one, T two, T three)
with(Object, Object, Object).<T> ImmutableSet<T> with(T one, T two, T three)
<T> ImmutableSet<T> of(T one, T two, T three, T four)
with(Object, Object, Object, Object).<T> ImmutableSet<T> with(T one, T two, T three, T four)
<T> ImmutableSet<T> of(T... items)
with(Object[]).<T> ImmutableSet<T> with(T... items)
<T> ImmutableSet<T> ofAll(Iterable<? extends T> items)
withAll(Iterable).<T> ImmutableSet<T> withAll(Iterable<? extends T> items)
default <T> ImmutableSet<T> fromStream(Stream<? extends T> stream)
Copyright © 2004–2021. All rights reserved.