Interface ImmutableSetFactory
-
public interface ImmutableSetFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> ImmutableSet<T>empty()default <T> ImmutableSet<T>fromStream(Stream<? extends T> stream)<T> ImmutableSet<T>of()Same asempty().<T> ImmutableSet<T>of(T one)Same aswith(Object).<T> ImmutableSet<T>of(T... items)Same aswith(Object[]).<T> ImmutableSet<T>of(T one, T two)Same aswith(Object, Object).<T> ImmutableSet<T>of(T one, T two, T three)Same aswith(Object, Object, Object).<T> ImmutableSet<T>of(T one, T two, T three, T four)Same aswith(Object, Object, Object, Object).<T> ImmutableSet<T>ofAll(Iterable<? extends T> items)Same aswithAll(Iterable).<T> ImmutableSet<T>with()Same asempty().<T> ImmutableSet<T>with(T one)<T> ImmutableSet<T>with(T... items)<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)
-
-
-
Method Detail
-
empty
<T> ImmutableSet<T> empty()
- Since:
- 6.0
-
of
<T> ImmutableSet<T> of()
Same asempty().
-
with
<T> ImmutableSet<T> with()
Same asempty().
-
of
<T> ImmutableSet<T> of(T one)
Same aswith(Object).
-
with
<T> ImmutableSet<T> with(T one)
-
of
<T> ImmutableSet<T> of(T one, T two)
Same aswith(Object, Object).
-
with
<T> ImmutableSet<T> with(T one, T two)
-
of
<T> ImmutableSet<T> of(T one, T two, T three)
Same aswith(Object, Object, Object).
-
with
<T> ImmutableSet<T> with(T one, T two, T three)
-
of
<T> ImmutableSet<T> of(T one, T two, T three, T four)
Same aswith(Object, Object, Object, Object).
-
with
<T> ImmutableSet<T> with(T one, T two, T three, T four)
-
of
<T> ImmutableSet<T> of(T... items)
Same aswith(Object[]).
-
with
<T> ImmutableSet<T> with(T... items)
-
ofAll
<T> ImmutableSet<T> ofAll(Iterable<? extends T> items)
Same aswithAll(Iterable).
-
withAll
<T> ImmutableSet<T> withAll(Iterable<? extends T> items)
-
fromStream
default <T> ImmutableSet<T> fromStream(Stream<? extends T> stream)
- Since:
- 10.0.
-
-