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

public Interface ImmutableBooleanList

extends ImmutableBooleanCollection, 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.ImmutableBooleanCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.BooleanBooleanPair, .BooleanObjectPair

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

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableList<V>
collect(BooleanToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.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> ImmutableList<V>
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

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

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

public ImmutableBooleanList
public ImmutableBooleanList
public ImmutableBooleanList
public ImmutableBooleanList
public ImmutableBooleanList
public ImmutableBooleanList
reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.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 ImmutableBooleanList
rejectWithIndex(BooleanIntPredicate predicate)

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

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

public ImmutableBooleanList
select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.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 ImmutableBooleanList
selectWithIndex(BooleanIntPredicate predicate)

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

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

public ImmutableBooleanList
public default ImmutableBooleanList
public ImmutableBooleanList
public default <T> ImmutableList<BooleanObjectPair<T>>
zip(Iterable<T> iterable)

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

Returns an ImmutableList formed from this ImmutableBooleanList and a ListIterable by combining corresponding elements in pairs.

public default ImmutableList<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)

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

Returns an ImmutableList formed from this ImmutableBooleanList and another BooleanList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.list.primitive.BooleanList:
equalsforEachInBothgethashCodelastIndexOftoImmutable

Method Detail

collectback to summary
public <V> ImmutableList<V> collect(BooleanToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.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.

Annotations
@Override
collectWithIndexback to summary
public default <V> ImmutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

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

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

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

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

Annotations
@Override
Since
6.0.
newWithback to summary
public ImmutableBooleanList newWith(boolean element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableBooleanList newWithAll(BooleanIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableBooleanList newWithout(boolean element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableBooleanList newWithoutAll(BooleanIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableBooleanList reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.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 ImmutableBooleanList rejectWithIndex(BooleanIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableBooleanList select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.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 ImmutableBooleanList selectWithIndex(BooleanIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
subListback to summary
public ImmutableBooleanList subList(int fromIndex, int toIndex)

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

Annotations
@Override
tapback to summary
public default ImmutableBooleanList tap(BooleanProcedure procedure)

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

Annotations
@Override
Since
9.0.
toReversedback to summary
public ImmutableBooleanList toReversed()

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

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

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

Returns an ImmutableList formed from this ImmutableBooleanList 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 ImmutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)

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

Returns an ImmutableList formed from this ImmutableBooleanList 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.