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

public Interface ReversibleDoubleIterable

extends OrderedDoubleIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.DoubleList
Imports
org.eclipse.collections.api.LazyDoubleIterable, org.eclipse.collections.api.block.function.primitive.DoubleIntToObjectFunction, .DoubleToObjectFunction, .ObjectDoubleIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate, .DoublePredicate, org.eclipse.collections.api.ordered.ReversibleIterable

This file was automatically generated from template file reversiblePrimitiveIterable.stg.
Since
5.0.

Method Summary

Modifier and TypeMethod and Description
public LazyDoubleIterable
public <V> ReversibleIterable<V>
collect(DoubleToObjectFunction<? extends V> function)

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

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

public default <V> ReversibleIterable<V>
collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

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

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

public ReversibleDoubleIterable
public double
public <T> T
public ReversibleDoubleIterable
reject(DoublePredicate predicate)

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

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

public default ReversibleDoubleIterable
rejectWithIndex(DoubleIntPredicate predicate)

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

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

public ReversibleDoubleIterable
select(DoublePredicate predicate)

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

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

public default ReversibleDoubleIterable
selectWithIndex(DoubleIntPredicate predicate)

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

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

public ReversibleDoubleIterable
Inherited from org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable:
collectWithIndexforEachWithIndexgetFirstindexOfrejectWithIndexselectWithIndextoStack

Method Detail

asReversedback to summary
public LazyDoubleIterable asReversed()
collectback to summary
public <V> ReversibleIterable<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.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> ReversibleIterable<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

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

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

Annotations
@Override
Since
9.1.
distinctback to summary
public ReversibleDoubleIterable distinct()
Since
6.0.
getLastback to summary
public double getLast()
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T, ? extends T> function)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.injectIntoWithIndex.

Annotations
@Override
rejectback to summary
public ReversibleDoubleIterable reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.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 ReversibleDoubleIterable rejectWithIndex(DoubleIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ReversibleDoubleIterable select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.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 ReversibleDoubleIterable selectWithIndex(DoubleIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
toReversedback to summary
public ReversibleDoubleIterable toReversed()