Interface MutableSetFactory
- All Known Implementing Classes:
MutableSetFactoryImpl
public interface MutableSetFactory
-
Method Summary
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 Details
-
empty
- Since:
- 6.0
-
of
Same asempty(). -
with
Same asempty(). -
of
Same aswith(Object[]). -
with
-
ofInitialCapacity
Same asempty(). but takes in initial capacity. -
withInitialCapacity
Same asempty(). but takes in initial capacity. -
ofAll
Same aswithAll(Iterable). -
withAll
-
fromStream
- Since:
- 10.0.
-