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 MutableSetFactory
INSTANCE
-
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, wait
Methods 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:
empty
in interfaceMutableSetFactory
-
withInitialCapacity
Description copied from interface:MutableSetFactory
Same asMutableSetFactory.empty()
. but takes in initial capacity.- Specified by:
withInitialCapacity
in interfaceMutableSetFactory
-
with
- Specified by:
with
in interfaceMutableSetFactory
-
withAll
- Specified by:
withAll
in interfaceMutableSetFactory
-
fromStream
- Specified by:
fromStream
in interfaceMutableSetFactory
-