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

public Interface OrderedBooleanIterable

extends BooleanIterable
Known Direct Subinterfaces
org.eclipse.collections.api.ordered.primitive.ReversibleBooleanIterable, org.eclipse.collections.api.stack.primitive.BooleanStack
Imports
java.util.Collection, org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.block.function.primitive.BooleanIntToObjectFunction, .BooleanToObjectFunction, .ObjectBooleanIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanIntPredicate, .BooleanPredicate, org.eclipse.collections.api.block.procedure.primitive.BooleanIntProcedure, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.stack.primitive.MutableBooleanStack

This file was automatically generated from template file orderedPrimitiveIterable.stg.
Since
6.0.

Method Summary

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

Redeclares 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.

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

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

public default <V, R extends Collection<V>> R
collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public void
public boolean
public int
indexOf(boolean value)

public <T> T
injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function)

public OrderedBooleanIterable
reject(BooleanPredicate predicate)

Redeclares 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.

public default OrderedBooleanIterable
rejectWithIndex(BooleanIntPredicate predicate)

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

public default <R extends MutableBooleanCollection> R
rejectWithIndex(BooleanIntPredicate predicate, R target)

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

public OrderedBooleanIterable
select(BooleanPredicate predicate)

Redeclares 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.

public default OrderedBooleanIterable
selectWithIndex(BooleanIntPredicate predicate)

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

public default <R extends MutableBooleanCollection> R
selectWithIndex(BooleanIntPredicate predicate, R target)

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

public default MutableBooleanStack
toStack()

Converts the collection to a BooleanStack.

Inherited from org.eclipse.collections.api.BooleanIterable:
allSatisfyanySatisfyasLazybooleanIteratorchunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortnoneSatisfyreducereduceIfEmptyrejectselecttaptoArraytoArraytoBagtoListtoSet

Method Detail

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

Redeclares org.eclipse.collections.api.BooleanIterable.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> OrderedIterable<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)

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

Since
9.1.
collectWithIndexback to summary
public default <V, R extends Collection<V>> R collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

Since
9.1.
forEachWithIndexback to summary
public void forEachWithIndex(BooleanIntProcedure procedure)
getFirstback to summary
public boolean getFirst()
indexOfback to summary
public int indexOf(boolean value)
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function)
rejectback to summary
public OrderedBooleanIterable reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.BooleanIterable.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 OrderedBooleanIterable rejectWithIndex(BooleanIntPredicate predicate)

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

Since
11.1.
rejectWithIndexback to summary
public default <R extends MutableBooleanCollection> R rejectWithIndex(BooleanIntPredicate predicate, R target)

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

Since
11.1.
selectback to summary
public OrderedBooleanIterable select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.BooleanIterable.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 OrderedBooleanIterable selectWithIndex(BooleanIntPredicate predicate)

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

Since
11.1.
selectWithIndexback to summary
public default <R extends MutableBooleanCollection> R selectWithIndex(BooleanIntPredicate predicate, R target)

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

Since
11.1.
toStackback to summary
public default MutableBooleanStack toStack()

Converts the collection to a BooleanStack.

Since
12.0.