Interface MutableSetFactory
-
public interface MutableSetFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> MutableSet<T>empty()<T> MutableSet<T>fromStream(Stream<? extends T> stream)default <T> MutableSet<T>of()Same asempty().default <T> MutableSet<T>of(T... items)Same aswith(Object[]).default <T> MutableSet<T>ofAll(Iterable<? extends T> items)Same aswithAll(Iterable).default <T> MutableSet<T>ofInitialCapacity(int capacity)Same asempty().default <T> MutableSet<T>with()Same asempty().<T> MutableSet<T>with(T... items)<T> MutableSet<T>withAll(Iterable<? extends T> items)<T> MutableSet<T>withInitialCapacity(int capacity)Same asempty().
-
-
-
Method Detail
-
empty
<T> MutableSet<T> empty()
- Since:
- 6.0
-
of
default <T> MutableSet<T> of()
Same asempty().
-
with
default <T> MutableSet<T> with()
Same asempty().
-
of
default <T> MutableSet<T> of(T... items)
Same aswith(Object[]).
-
with
<T> MutableSet<T> with(T... items)
-
ofInitialCapacity
default <T> MutableSet<T> ofInitialCapacity(int capacity)
Same asempty(). but takes in initial capacity.
-
withInitialCapacity
<T> MutableSet<T> withInitialCapacity(int capacity)
Same asempty(). but takes in initial capacity.
-
ofAll
default <T> MutableSet<T> ofAll(Iterable<? extends T> items)
Same aswithAll(Iterable).
-
withAll
<T> MutableSet<T> withAll(Iterable<? extends T> items)
-
fromStream
<T> MutableSet<T> fromStream(Stream<? extends T> stream)
- Since:
- 10.0.
-
-