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
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)Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.factory.bag.MutableBagFactory
of, of, ofAll, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, with, withOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrences
-
Field Details
-
Constructor Details
-
MutableBagFactoryImpl
public MutableBagFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
emptyin interfaceMutableBagFactory
-
with
- Specified by:
within interfaceMutableBagFactory
-
withAll
- Specified by:
withAllin interfaceMutableBagFactory
-
fromStream
- Specified by:
fromStreamin interfaceMutableBagFactory
-