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 MutableBagFactory
INSTANCE
-
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, wait
Methods 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:
empty
in interfaceMutableBagFactory
-
with
- Specified by:
with
in interfaceMutableBagFactory
-
withAll
- Specified by:
withAll
in interfaceMutableBagFactory
-
fromStream
- Specified by:
fromStream
in interfaceMutableBagFactory
-