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

public Interface MutableBooleanList

extends MutableBooleanCollection, BooleanList
Imports
org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.block.function.primitive.BooleanIntToObjectFunction, .BooleanToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanIntPredicate, .BooleanPredicate, org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.BooleanBooleanPair, .BooleanObjectPair

This file was automatically generated from template file mutablePrimitiveList.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public boolean
addAllAtIndex(int index, boolean... source)

public boolean
addAllAtIndex(int index, BooleanIterable source)

public void
addAtIndex(int index, boolean element)

public MutableBooleanList
public MutableBooleanList
public MutableList<Boolean>
public <V> MutableList<V>
collect(BooleanToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.collect, org.eclipse.collections.api.list.primitive.BooleanList.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default <V> MutableList<V>
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

public MutableBooleanList
public default MutableBooleanList
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.newEmpty.

Creates a new empty mutable version of the same List type.

public MutableBooleanList
reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.reject, org.eclipse.collections.api.list.primitive.BooleanList.reject.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.

public default MutableBooleanList
rejectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.rejectWithIndex.

Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.

public boolean
removeAtIndex(int index)

public MutableBooleanList
public MutableBooleanList
select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.select, org.eclipse.collections.api.list.primitive.BooleanList.select.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.

public default MutableBooleanList
selectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.selectWithIndex.

Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.

public boolean
set(int index, boolean element)

public MutableBooleanList
public default void
swap(int index1, int index2)

public default MutableBooleanList
public ImmutableBooleanList
public MutableBooleanList
public MutableBooleanList
public MutableBooleanList
public MutableBooleanList
public MutableBooleanList
public default <T> MutableList<BooleanObjectPair<T>>
zip(Iterable<T> list)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.zip.

Returns a MutableList formed from this MutableBooleanList and a ListIterable by combining corresponding elements in pairs.

public default MutableList<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.zipBoolean.

Returns a MutableList formed from this MutableBooleanList and another BooleanList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.collection.primitive.MutableBooleanCollection:
addaddAlladdAllbooleanIteratorclearremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.list.primitive.BooleanList:
equalsforEachInBothgethashCodelastIndexOf

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, boolean... source)
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, BooleanIterable source)
addAtIndexback to summary
public void addAtIndex(int index, boolean element)
asSynchronizedback to summary
public MutableBooleanList asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableBooleanList asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableList<Boolean> boxed()
collectback to summary
public <V> MutableList<V> collect(BooleanToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.collect, org.eclipse.collections.api.list.primitive.BooleanList.collect.

Doc from org.eclipse.collections.api.BooleanIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

collectWithIndexback to summary
public default <V> MutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
distinctback to summary
public MutableBooleanList distinct()

Redeclares org.eclipse.collections.api.list.primitive.BooleanList.distinct.

Annotations
@Override
Since
6.0.
newEmptyback to summary
public default MutableBooleanList newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.newEmpty.

Creates a new empty mutable version of the same List type.

Since
9.2.
rejectback to summary
public MutableBooleanList reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.reject, org.eclipse.collections.api.list.primitive.BooleanList.reject.

Doc from org.eclipse.collections.api.BooleanIterable.reject.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.

Annotations
@Override
rejectWithIndexback to summary
public default MutableBooleanList rejectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.rejectWithIndex.

Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
removeAtIndexback to summary
public boolean removeAtIndex(int index)
reverseThisback to summary
public MutableBooleanList reverseThis()
selectback to summary
public MutableBooleanList select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.select, org.eclipse.collections.api.list.primitive.BooleanList.select.

Doc from org.eclipse.collections.api.BooleanIterable.select.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.

Annotations
@Override
selectWithIndexback to summary
public default MutableBooleanList selectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.selectWithIndex.

Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
setback to summary
public boolean set(int index, boolean element)
subListback to summary
public MutableBooleanList subList(int fromIndex, int toIndex)

Redeclares org.eclipse.collections.api.list.primitive.BooleanList.subList.

Annotations
@Override
swapback to summary
public default void swap(int index1, int index2)
tapback to summary
public default MutableBooleanList tap(BooleanProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.tap, org.eclipse.collections.api.list.primitive.BooleanList.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableBooleanList toImmutable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.toImmutable, org.eclipse.collections.api.list.primitive.BooleanList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableBooleanList toReversed()

Redeclares org.eclipse.collections.api.list.primitive.BooleanList.toReversed.

Annotations
@Override
withback to summary
public MutableBooleanList with(boolean element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.with.

Annotations
@Override
withAllback to summary
public MutableBooleanList withAll(BooleanIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.withAll.

Annotations
@Override
withoutback to summary
public MutableBooleanList without(boolean element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.without.

Annotations
@Override
withoutAllback to summary
public MutableBooleanList withoutAll(BooleanIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.withoutAll.

Annotations
@Override
zipback to summary
public default <T> MutableList<BooleanObjectPair<T>> zip(Iterable<T> list)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.zip.

Returns a MutableList formed from this MutableBooleanList and a ListIterable by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.

Since
9.1.
zipBooleanback to summary
public default MutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.BooleanList.zipBoolean.

Returns a MutableList formed from this MutableBooleanList and another BooleanList by combining corresponding elements in pairs. If one of the two BooleanLists is longer than the other, its remaining elements are ignored.

Since
9.1.