Class MutableSetFactoryImpl
java.lang.Object
org.eclipse.collections.impl.set.mutable.MutableSetFactoryImpl
- All Implemented Interfaces:
MutableSetFactory
public class MutableSetFactoryImpl extends Object implements MutableSetFactory
-
Field Summary
Fields Modifier and Type Field Description static MutableSetFactoryINSTANCE -
Constructor Summary
Constructors Constructor Description MutableSetFactoryImpl() -
Method Summary
Modifier and Type Method Description <T> MutableSet<T>empty()<T> MutableSet<T>fromStream(Stream<? extends T> stream)<T> MutableSet<T>with(T... items)<T> MutableSet<T>withAll(Iterable<? extends T> items)<T> MutableSet<T>withInitialCapacity(int capacity)Same asMutableSetFactory.empty().Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.factory.set.MutableSetFactory
of, of, ofAll, ofInitialCapacity, with
-
Field Details
-
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
-