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

public Interface ImmutableLongBagFactory

Imports
org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.bag.primitive.ImmutableLongBag, java.util.stream.LongStream

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

Method Summary

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

Same as empty().

public ImmutableLongBag
of(long one)

Same as with(long).

public ImmutableLongBag
of(long... items)

Same as with(long[]).

public ImmutableLongBag
public ImmutableLongBag
ofAll(Iterable<Long> iterable)

Same as withAll(Iterable).

public ImmutableLongBag
public ImmutableLongBag
with()

Same as empty().

public ImmutableLongBag
with(long one)

public ImmutableLongBag
with(long... items)

public ImmutableLongBag
public ImmutableLongBag
withAll(Iterable<Long> iterable)

public ImmutableLongBag

Method Detail

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

Same as empty().

ofback to summary
public ImmutableLongBag of(long one)

Same as with(long).

ofback to summary
public ImmutableLongBag of(long... items)

Same as with(long[]).

ofAllback to summary
public ImmutableLongBag ofAll(LongIterable items)

Same as withAll(LongIterable).

ofAllback to summary
public ImmutableLongBag ofAll(Iterable<Long> iterable)

Same as withAll(Iterable).

ofAllback to summary
public ImmutableLongBag ofAll(LongStream items)
Since
9.0
withback to summary
public ImmutableLongBag with()

Same as empty().

withback to summary
public ImmutableLongBag with(long one)
withback to summary
public ImmutableLongBag with(long... items)
withAllback to summary
public ImmutableLongBag withAll(LongIterable items)
withAllback to summary
public ImmutableLongBag withAll(Iterable<Long> iterable)
withAllback to summary
public ImmutableLongBag withAll(LongStream items)
Since
9.0