Interface MutableSetFactory
-
- All Known Implementing Classes:
MutableSetFactoryImpl
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(java.util.stream.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(java.lang.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(java.lang.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(java.lang.Iterable<? extends T> items)
Same aswithAll(Iterable)
.
-
withAll
<T> MutableSet<T> withAll(java.lang.Iterable<? extends T> items)
-
fromStream
<T> MutableSet<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Since:
- 10.0.
-
-