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

public Interface MutableShortListFactory

Imports
org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.list.primitive.MutableShortList

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

Method Summary

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

Same as empty().

public MutableShortList
of(short... items)

Same as with(short[]).

public MutableShortList
public MutableShortList
public MutableShortList
with()

Same as empty().

public MutableShortList
with(short... items)

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

public MutableShortList
public MutableShortList
withAll(Iterable<Short> iterable)

public default MutableShortList
withInitialCapacity(int capacity)

Same as empty().

public default MutableShortList
wrapCopy(short... array)

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

Method Detail

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

Same as empty().

ofback to summary
public MutableShortList of(short... items)

Same as with(short[]).

ofAllback to summary
public MutableShortList ofAll(ShortIterable items)

Same as withAll(ShortIterable).

ofAllback to summary
public MutableShortList ofAll(Iterable<Short> iterable)

Same as withAll(Iterable).

withback to summary
public MutableShortList with()

Same as empty().

withback to summary
public MutableShortList with(short... 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 MutableShortList withAll(ShortIterable items)
withAllback to summary
public MutableShortList withAll(Iterable<Short> iterable)
withInitialCapacityback to summary
public default MutableShortList withInitialCapacity(int capacity)

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

Since
10.3
wrapCopyback to summary
public default MutableShortList wrapCopy(short... array)

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