Top Fields Constructors Methods
org.eclipse.collections.impl.bag.mutable

public Class MutableBagFactoryImpl

extends Object
implements MutableBagFactory
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.factory.bag.MutableBagFactory
Annotations
@ServiceProvider:MutableBagFactory
Imports
java.util.stream.Collectors, .Stream, org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.factory.bag.MutableBagFactory

Field Summary

Modifier and TypeField and Description
public static final MutableBagFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> MutableBag<T>
public <T> MutableBag<T>
public <T> MutableBag<T>
public <T> MutableBag<T>
public <T> MutableBag<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final MutableBagFactory INSTANCE

Constructor Detail

MutableBagFactoryImplback to summary
public MutableBagFactoryImpl()

Method Detail

emptyback to summary
public <T> MutableBag<T> empty()

Implements org.eclipse.collections.api.factory.bag.MutableBagFactory.empty.

Annotations
@Override
fromStreamback to summary
public <T> MutableBag<T> fromStream(Stream<? extends T> stream)

Implements org.eclipse.collections.api.factory.bag.MutableBagFactory.fromStream.

Annotations
@Override
withback to summary
public <T> MutableBag<T> with(T... elements)

Implements org.eclipse.collections.api.factory.bag.MutableBagFactory.with.

Annotations
@Override
withAllback to summary
public <T> MutableBag<T> withAll(Iterable<? extends T> items)

Implements org.eclipse.collections.api.factory.bag.MutableBagFactory.withAll.

Annotations
@Override
withInitialCapacityback to summary
public <T> MutableBag<T> withInitialCapacity(int capacity)

Overrides default org.eclipse.collections.api.factory.bag.MutableBagFactory.withInitialCapacity.

Doc from org.eclipse.collections.api.factory.bag.MutableBagFactory.withInitialCapacity.

Same as empty(). but takes in initial capacity.

Annotations
@Override