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

public Interface MutableIntListFactory

Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.list.primitive.MutableIntList, java.util.stream.IntStream

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

Method Summary

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

Same as empty().

public MutableIntList
of(int... items)

Same as with(int[]).

public MutableIntList
public MutableIntList
public MutableIntList
public MutableIntList
with()

Same as empty().

public MutableIntList
with(int... items)

Creates a new list using the passed items argument as the backing store.

public MutableIntList
public MutableIntList
public MutableIntList
public default MutableIntList
withInitialCapacity(int capacity)

Same as empty().

public default MutableIntList
wrapCopy(int... array)

Creates a new list by first copying the array passed in.

Method Detail

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

Same as empty().

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

Same as with(int[]).

ofAllback to summary
public MutableIntList ofAll(IntIterable items)

Same as withAll(IntIterable).

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

Same as withAll(Iterable).

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

Same as empty().

withback to summary
public MutableIntList with(int... items)

Creates a new list using the passed items argument as the backing store.

!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else.

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

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

Since
10.3
wrapCopyback to summary
public default MutableIntList wrapCopy(int... array)

Creates a new list by first copying the array passed in.