Class MutableSetFactoryImpl
java.lang.Object
org.eclipse.collections.impl.set.mutable.MutableSetFactoryImpl
- All Implemented Interfaces:
MutableSetFactory
-
Field Summary
-
Constructor Summary
-
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 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
-
INSTANCE
-
-
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
-