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

public Interface MutableCharListFactory

Imports
org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.list.primitive.MutableCharList

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

Method Summary

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

Same as empty().

public MutableCharList
of(char... items)

Same as with(char[]).

public MutableCharList
public MutableCharList
public MutableCharList
with()

Same as empty().

public MutableCharList
with(char... items)

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

public MutableCharList
public MutableCharList
public default MutableCharList
withInitialCapacity(int capacity)

Same as empty().

public default MutableCharList
wrapCopy(char... array)

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

Method Detail

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

Same as empty().

ofback to summary
public MutableCharList of(char... items)

Same as with(char[]).

ofAllback to summary
public MutableCharList ofAll(CharIterable items)

Same as withAll(CharIterable).

ofAllback to summary
public MutableCharList ofAll(Iterable<Character> iterable)

Same as withAll(Iterable).

withback to summary
public MutableCharList with()

Same as empty().

withback to summary
public MutableCharList with(char... 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 MutableCharList withAll(CharIterable items)
withAllback to summary
public MutableCharList withAll(Iterable<Character> iterable)
withInitialCapacityback to summary
public default MutableCharList withInitialCapacity(int capacity)

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

Since
10.3
wrapCopyback to summary
public default MutableCharList wrapCopy(char... array)

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