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

public Interface MutableIntSetFactory

Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.set.primitive.MutableIntSet, java.util.stream.IntStream

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

Method Summary

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

Same as empty().

public MutableIntSet
of(int... items)

Same as with(int[]).

public MutableIntSet
public MutableIntSet
public MutableIntSet
public MutableIntSet
with()

Same as empty().

public MutableIntSet
with(int... items)

public MutableIntSet
public MutableIntSet
public MutableIntSet
public default MutableIntSet
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

Same as empty().

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

Same as with(int[]).

ofAllback to summary
public MutableIntSet ofAll(IntIterable items)

Same as withAll(IntIterable).

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

Same as withAll(Iterable).

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

Same as empty().

withback to summary
public MutableIntSet with(int... items)
withAllback to summary
public MutableIntSet withAll(IntIterable items)
withAllback to summary
public MutableIntSet withAll(Iterable<Integer> iterable)
withAllback to summary
public MutableIntSet withAll(IntStream items)
Since
9.0
withInitialCapacityback to summary
public default MutableIntSet withInitialCapacity(int capacity)

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

Since
10.3