Class MutableBagFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.bag.mutable.MutableBagFactoryImpl
-
- All Implemented Interfaces:
MutableBagFactory
public class MutableBagFactoryImpl extends Object implements MutableBagFactory
-
-
Field Summary
Fields Modifier and Type Field Description static MutableBagFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description MutableBagFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MutableBag<T>empty()<T> MutableBag<T>fromStream(Stream<? extends T> stream)<T> MutableBag<T>with(T... elements)<T> MutableBag<T>withAll(Iterable<? extends T> items)<T> MutableBag<T>withInitialCapacity(int capacity)-
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.bag.MutableBagFactory
of, of, ofAll, ofInitialCapacity, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, with, withOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrences
-
-
-
-
Field Detail
-
INSTANCE
public static final MutableBagFactory INSTANCE
-
-
Method Detail
-
empty
public <T> MutableBag<T> empty()
- Specified by:
emptyin interfaceMutableBagFactory
-
with
public <T> MutableBag<T> with(T... elements)
- Specified by:
within interfaceMutableBagFactory
-
withAll
public <T> MutableBag<T> withAll(Iterable<? extends T> items)
- Specified by:
withAllin interfaceMutableBagFactory
-
fromStream
public <T> MutableBag<T> fromStream(Stream<? extends T> stream)
- Specified by:
fromStreamin interfaceMutableBagFactory
-
withInitialCapacity
public <T> MutableBag<T> withInitialCapacity(int capacity)
- Specified by:
withInitialCapacityin interfaceMutableBagFactory
-
-