Top Description Methods
org.eclipse.collections.api.factory.bag.primitive

public Interface MutableIntBagFactory

Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, java.util.stream.IntStream

A factory which creates instances of type MutableIntBag. This file was automatically generated from template file mutablePrimitiveBagFactory.stg.
Since
6.0.

Method Summary

Modifier and TypeMethod and Description
public MutableIntBag
public MutableIntBag
of()

Same as empty().

public MutableIntBag
of(int... items)

Same as with(int[]).

public MutableIntBag
public MutableIntBag
public MutableIntBag
public MutableIntBag
with()

Same as empty().

public MutableIntBag
with(int... items)

public MutableIntBag
public MutableIntBag
public MutableIntBag

Method Detail

emptyback to summary
public MutableIntBag empty()
ofback to summary
public MutableIntBag of()

Same as empty().

ofback to summary
public MutableIntBag of(int... items)

Same as with(int[]).

ofAllback to summary
public MutableIntBag ofAll(IntIterable items)

Same as withAll(IntIterable).

ofAllback to summary
public MutableIntBag ofAll(Iterable<Integer> iterable)

Same as withAll(Iterable).

ofAllback to summary
public MutableIntBag ofAll(IntStream items)
Since
9.0
withback to summary
public MutableIntBag with()

Same as empty().

withback to summary
public MutableIntBag with(int... items)
withAllback to summary
public MutableIntBag withAll(IntIterable items)
withAllback to summary
public MutableIntBag withAll(Iterable<Integer> iterable)
withAllback to summary
public MutableIntBag withAll(IntStream items)
Since
9.0