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

public Interface BooleanList

extends ReversibleBooleanIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.ImmutableBooleanList, org.eclipse.collections.api.list.primitive.MutableBooleanList
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.BooleanBooleanProcedure, .BooleanProcedure, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable, org.eclipse.collections.api.tuple.primitive.BooleanBooleanPair, .BooleanObjectPair, java.util.Objects

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

Method Summary

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.collect.

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

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

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.collectWithIndex.

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

public BooleanList
public boolean
equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

public default void
forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

public boolean
get(int index)

public int
hashCode()

Follows the same general contract as java.util.List#hashCode().

public int
lastIndexOf(boolean value)

public BooleanList
reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.reject.

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

public default BooleanList
rejectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.rejectWithIndex.

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

public BooleanList
select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.select.

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

public default BooleanList
selectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.selectWithIndex.

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

public BooleanList
subList(int fromIndex, int toIndex)

public default BooleanList
public ImmutableBooleanList
toImmutable()

Returns an immutable copy of this list.

public BooleanList
public default <T> ListIterable<BooleanObjectPair<T>>
zip(Iterable<T> iterable)

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

public default ListIterable<BooleanBooleanPair>
zipBoolean(BooleanIterable iterable)

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

Inherited from org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable:
asReversedgetLastinjectIntoWithIndex

Method Detail

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.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> ListIterable<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.collectWithIndex.

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

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.distinct.

Annotations
@Override
Since
6.0.
equalsback to summary
public boolean equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachInBothback to summary
public default void forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

Since
11.1
getback to summary
public boolean get(int index)
hashCodeback to summary
public int hashCode()

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(boolean value)
rejectback to summary
public BooleanList reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.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 BooleanList rejectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.rejectWithIndex.

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

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.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 BooleanList selectWithIndex(BooleanIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.selectWithIndex.

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

Annotations
@Override
Since
11.1.
subListback to summary
public BooleanList subList(int fromIndex, int toIndex)
Since
5.0.
See Also
java.util.List#subList(int fromIndex, int toIndex)
tapback to summary
public default BooleanList tap(BooleanProcedure procedure)

Overrides default org.eclipse.collections.api.BooleanIterable.tap.

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

Returns an immutable copy of this list. If the list is immutable, it returns itself.

toReversedback to summary
public BooleanList toReversed()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable.toReversed.

Annotations
@Override
Since
5.0.
zipback to summary
public default <T> ListIterable<BooleanObjectPair<T>> zip(Iterable<T> iterable)

Returns a ListIterable formed from this BooleanList 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 ListIterable<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)

Returns a ListIterable formed from this BooleanList 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.