Class MutableSetFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.set.mutable.MutableSetFactoryImpl
-
- All Implemented Interfaces:
MutableSetFactory
public class MutableSetFactoryImpl extends java.lang.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(java.util.stream.Stream<? extends T> stream)<T> MutableSet<T>with(T... items)<T> MutableSet<T>withAll(java.lang.Iterable<? extends T> items)<T> MutableSet<T>withInitialCapacity(int capacity)Same asMutableSetFactory.empty().-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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)
Description copied from interface:MutableSetFactorySame asMutableSetFactory.empty(). but takes in initial capacity.- Specified by:
withInitialCapacityin interfaceMutableSetFactory
-
with
public <T> MutableSet<T> with(T... items)
- Specified by:
within interfaceMutableSetFactory
-
withAll
public <T> MutableSet<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAllin interfaceMutableSetFactory
-
fromStream
public <T> MutableSet<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStreamin interfaceMutableSetFactory
-
-