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
All Methods Instance Methods Concrete Methods 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)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.factory.set.MutableSetFactory
of, of, ofAll, ofInitialCapacity, with
-
-
-
-
Field Detail
-
INSTANCE
public static final MutableSetFactory INSTANCE
-
-
Method Detail
-
empty
public <T> MutableSet<T> empty()
- Specified by:
emptyin interfaceMutableSetFactory
-
withInitialCapacity
public <T> MutableSet<T> withInitialCapacity(int capacity)
- Specified by:
withInitialCapacityin interfaceMutableSetFactory
-
with
public <T> MutableSet<T> with(T... items)
- Specified by:
within interfaceMutableSetFactory
-
withAll
public <T> MutableSet<T> withAll(Iterable<? extends T> items)
- Specified by:
withAllin interfaceMutableSetFactory
-
fromStream
public <T> MutableSet<T> fromStream(Stream<? extends T> stream)
- Specified by:
fromStreamin interfaceMutableSetFactory
-
-