Class MutableSetFactoryImpl
java.lang.Object
org.eclipse.collections.impl.set.mutable.MutableSetFactoryImpl
- All Implemented Interfaces:
MutableSetFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MutableSet<T> empty()<T> MutableSet<T> fromStream(Stream<? extends T> stream) <T> MutableSet<T> with(T... items) <T> MutableSet<T> <T> MutableSet<T> withInitialCapacity(int capacity) Same asMutableSetFactory.empty().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MutableSetFactory
of, of, ofAll, ofInitialCapacity, with
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MutableSetFactoryImpl
public MutableSetFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
emptyin interfaceMutableSetFactory
-
withInitialCapacity
Description copied from interface:MutableSetFactorySame asMutableSetFactory.empty(). but takes in initial capacity.- Specified by:
withInitialCapacityin interfaceMutableSetFactory
-
with
- Specified by:
within interfaceMutableSetFactory
-
withAll
- Specified by:
withAllin interfaceMutableSetFactory
-
fromStream
- Specified by:
fromStreamin interfaceMutableSetFactory
-