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 MutableSetFactory
INSTANCE
-
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:
empty
in interfaceMutableSetFactory
-
withInitialCapacity
public <T> MutableSet<T> withInitialCapacity(int capacity)
Description copied from interface:MutableSetFactory
Same asMutableSetFactory.empty()
. but takes in initial capacity.- Specified by:
withInitialCapacity
in interfaceMutableSetFactory
-
with
public <T> MutableSet<T> with(T... items)
- Specified by:
with
in interfaceMutableSetFactory
-
withAll
public <T> MutableSet<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAll
in interfaceMutableSetFactory
-
fromStream
public <T> MutableSet<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStream
in interfaceMutableSetFactory
-
-