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 java.lang.Object
clone, equals, finalize, 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 Details
-
INSTANCE
-
-
Constructor Details
-
MutableBagFactoryImpl
public MutableBagFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
empty
in interfaceMutableBagFactory
-
with
- Specified by:
with
in interfaceMutableBagFactory
-
withAll
- Specified by:
withAll
in interfaceMutableBagFactory
-
fromStream
- Specified by:
fromStream
in interfaceMutableBagFactory
-
withInitialCapacity
Description copied from interface:MutableBagFactory
Same asMutableBagFactory.empty()
. but takes in initial capacity.- Specified by:
withInitialCapacity
in interfaceMutableBagFactory
-