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

public Interface MutableLongListFactory

Imports
org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.list.primitive.MutableLongList, java.util.stream.LongStream

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

Method Summary

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

Same as empty().

public MutableLongList
of(long... items)

Same as with(long[]).

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

Same as withAll(Iterable).

public MutableLongList
public MutableLongList
with()

Same as empty().

public MutableLongList
with(long... items)

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

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

public MutableLongList
public default MutableLongList
withInitialCapacity(int capacity)

Same as empty().

public default MutableLongList
wrapCopy(long... array)

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

Method Detail

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

Same as empty().

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

Same as with(long[]).

ofAllback to summary
public MutableLongList ofAll(LongIterable items)

Same as withAll(LongIterable).

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

Same as withAll(Iterable).

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

Same as empty().

withback to summary
public MutableLongList with(long... 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 MutableLongList withAll(LongIterable items)
withAllback to summary
public MutableLongList withAll(Iterable<Long> iterable)
withAllback to summary
public MutableLongList withAll(LongStream items)
Since
9.0
withInitialCapacityback to summary
public default MutableLongList withInitialCapacity(int capacity)

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

Since
10.3
wrapCopyback to summary
public default MutableLongList wrapCopy(long... array)

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