Interface ImmutableSetFactory
public interface ImmutableSetFactory
-
Method Summary
Modifier and TypeMethodDescription<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>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>
-
Method Details
-
empty
- Since:
- 6.0
-
of
Same asempty(). -
with
Same asempty(). -
of
Same aswith(Object). -
with
-
of
Same aswith(Object, Object). -
with
-
of
Same aswith(Object, Object, Object). -
with
-
of
Same aswith(Object, Object, Object, Object). -
with
-
of
Same aswith(Object[]). -
with
-
ofAll
Same aswithAll(Iterable). -
withAll
-
fromStream
- Since:
- 10.0.
-