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

public Interface MutableBooleanListFactory

Imports
org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.list.primitive.MutableBooleanList

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

Method Summary

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

Same as empty().

public MutableBooleanList
of(boolean... items)

Same as with(boolean[]).

public MutableBooleanList
public MutableBooleanList
public MutableBooleanList
with()

Same as empty().

public MutableBooleanList
with(boolean... items)

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

public MutableBooleanList
public MutableBooleanList
public default MutableBooleanList
withInitialCapacity(int capacity)

Same as empty().

public default MutableBooleanList
wrapCopy(boolean... array)

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

Method Detail

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

Same as empty().

ofback to summary
public MutableBooleanList of(boolean... items)

Same as with(boolean[]).

ofAllback to summary
public MutableBooleanList ofAll(BooleanIterable items)

Same as withAll(BooleanIterable).

ofAllback to summary
public MutableBooleanList ofAll(Iterable<Boolean> iterable)

Same as withAll(Iterable).

withback to summary
public MutableBooleanList with()

Same as empty().

withback to summary
public MutableBooleanList with(boolean... 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 MutableBooleanList withAll(BooleanIterable items)
withAllback to summary
public MutableBooleanList withAll(Iterable<Boolean> iterable)
withInitialCapacityback to summary
public default MutableBooleanList withInitialCapacity(int capacity)

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

Since
10.3
wrapCopyback to summary
public default MutableBooleanList wrapCopy(boolean... array)

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