Class MultiReaderMutableSetFactory
- java.lang.Object
-
- org.eclipse.collections.impl.set.mutable.MultiReaderMutableSetFactory
-
- All Implemented Interfaces:
MultiReaderSetFactory
public class MultiReaderMutableSetFactory extends java.lang.Object implements MultiReaderSetFactory
-
-
Field Summary
Fields Modifier and Type Field Description static MultiReaderSetFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MultiReaderMutableSetFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MultiReaderSet<T>
empty()
<T> MultiReaderSet<T>
fromStream(java.util.stream.Stream<? extends T> stream)
<T> MultiReaderSet<T>
with(T... items)
<T> MultiReaderSet<T>
withAll(java.lang.Iterable<? extends T> iterable)
<T> MultiReaderSet<T>
withInitialCapacity(int capacity)
Same asMultiReaderSetFactory.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.MultiReaderSetFactory
of, of, ofAll, ofInitialCapacity, with
-
-
-
-
Field Detail
-
INSTANCE
public static final MultiReaderSetFactory INSTANCE
-
-
Method Detail
-
empty
public <T> MultiReaderSet<T> empty()
- Specified by:
empty
in interfaceMultiReaderSetFactory
-
with
public <T> MultiReaderSet<T> with(T... items)
- Specified by:
with
in interfaceMultiReaderSetFactory
-
withInitialCapacity
public <T> MultiReaderSet<T> withInitialCapacity(int capacity)
Description copied from interface:MultiReaderSetFactory
Same asMultiReaderSetFactory.empty()
. but takes in initial capacity.- Specified by:
withInitialCapacity
in interfaceMultiReaderSetFactory
-
withAll
public <T> MultiReaderSet<T> withAll(java.lang.Iterable<? extends T> iterable)
- Specified by:
withAll
in interfaceMultiReaderSetFactory
-
fromStream
public <T> MultiReaderSet<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStream
in interfaceMultiReaderSetFactory
-
-