Class MutableBagFactoryImpl
java.lang.Object
org.eclipse.collections.impl.bag.mutable.MutableBagFactoryImpl
- All Implemented Interfaces:
MutableBagFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> MutableBag<T> empty()<T> MutableBag<T> fromStream(Stream<? extends T> stream) <T> MutableBag<T> with(T... elements) <T> MutableBag<T> <T> MutableBag<T> withInitialCapacity(int capacity) Same asMutableBagFactory.empty().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MutableBagFactory
of, of, ofAll, ofInitialCapacity, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, with, withOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrences
-
Field Details
-
INSTANCE
-
-
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
-
withInitialCapacity
Description copied from interface:MutableBagFactorySame asMutableBagFactory.empty(). but takes in initial capacity.- Specified by:
withInitialCapacityin interfaceMutableBagFactory
-