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

public Interface OrderedDoubleIterable

extends DoubleIterable
Known Direct Subinterfaces
org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable, org.eclipse.collections.api.stack.primitive.DoubleStack
Imports
java.util.Collection, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.function.primitive.DoubleIntToObjectFunction, .DoubleToObjectFunction, .ObjectDoubleIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate, .DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.stack.primitive.MutableDoubleStack

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(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.DoubleIterable.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(DoubleIntToObjectFunction<? 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(DoubleIntToObjectFunction<? 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 double
public int
indexOf(double value)

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

public OrderedDoubleIterable
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.reject.

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

public default OrderedDoubleIterable
rejectWithIndex(DoubleIntPredicate predicate)

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

public default <R extends MutableDoubleCollection> R
rejectWithIndex(DoubleIntPredicate predicate, R target)

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

public OrderedDoubleIterable
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.select.

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

public default OrderedDoubleIterable
selectWithIndex(DoubleIntPredicate predicate)

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

public default <R extends MutableDoubleCollection> R
selectWithIndex(DoubleIntPredicate predicate, R target)

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

public default MutableDoubleStack
toStack()

Converts the collection to a DoubleStack.

Inherited from org.eclipse.collections.api.DoubleIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNonedoubleIteratoreachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstaptoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

Redeclares org.eclipse.collections.api.DoubleIterable.collect.

Doc from org.eclipse.collections.api.DoubleIterable.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(DoubleIntToObjectFunction<? 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(DoubleIntToObjectFunction<? 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(DoubleIntProcedure procedure)
getFirstback to summary
public double getFirst()
indexOfback to summary
public int indexOf(double value)
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T, ? extends T> function)
rejectback to summary
public OrderedDoubleIterable reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public default OrderedDoubleIterable rejectWithIndex(DoubleIntPredicate predicate)

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

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

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

Since
11.1.
selectback to summary
public OrderedDoubleIterable select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.DoubleIterable.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public default OrderedDoubleIterable selectWithIndex(DoubleIntPredicate predicate)

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

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

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

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

Converts the collection to a DoubleStack.

Since
12.0.