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

public Interface MutableLongSetFactory

Imports
org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.set.primitive.MutableLongSet, java.util.stream.LongStream

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

Method Summary

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

Same as empty().

public MutableLongSet
of(long... items)

Same as with(long[]).

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

Same as withAll(Iterable).

public MutableLongSet
public MutableLongSet
with()

Same as empty().

public MutableLongSet
with(long... items)

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

public MutableLongSet
public default MutableLongSet
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

Same as empty().

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

Same as with(long[]).

ofAllback to summary
public MutableLongSet ofAll(LongIterable items)

Same as withAll(LongIterable).

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

Same as withAll(Iterable).

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

Same as empty().

withback to summary
public MutableLongSet with(long... items)
withAllback to summary
public MutableLongSet withAll(LongIterable items)
withAllback to summary
public MutableLongSet withAll(Iterable<Long> iterable)
withAllback to summary
public MutableLongSet withAll(LongStream items)
Since
9.0
withInitialCapacityback to summary
public default MutableLongSet withInitialCapacity(int capacity)

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

Since
10.3