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

public Interface ImmutableIntBagFactory

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

A factory which creates instances of type ImmutableIntBag. This file was automatically generated from template file immutablePrimitiveBagFactory.stg.
Since
4.0.

Method Summary

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

Same as empty().

public ImmutableIntBag
of(int one)

Same as with(int).

public ImmutableIntBag
of(int... items)

Same as with(int[]).

public ImmutableIntBag
public ImmutableIntBag
public ImmutableIntBag
public ImmutableIntBag
with()

Same as empty().

public ImmutableIntBag
with(int one)

public ImmutableIntBag
with(int... items)

public ImmutableIntBag
public ImmutableIntBag
public ImmutableIntBag

Method Detail

emptyback to summary
public ImmutableIntBag empty()
Since
6.0
ofback to summary
public ImmutableIntBag of()

Same as empty().

ofback to summary
public ImmutableIntBag of(int one)

Same as with(int).

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

Same as with(int[]).

ofAllback to summary
public ImmutableIntBag ofAll(IntIterable items)

Same as withAll(IntIterable).

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

Same as withAll(Iterable).

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

Same as empty().

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