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

public Interface ReversibleLongIterable

extends OrderedLongIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.LongList
Imports
org.eclipse.collections.api.LazyLongIterable, org.eclipse.collections.api.block.function.primitive.LongIntToObjectFunction, .LongToObjectFunction, .ObjectLongIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongIntPredicate, .LongPredicate, 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 LazyLongIterable
public <V> ReversibleIterable<V>
collect(LongToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedLongIterable.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(LongIntToObjectFunction<? extends V> function)

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

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

public ReversibleLongIterable
public long
public <T> T
public ReversibleLongIterable
reject(LongPredicate predicate)

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

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

public default ReversibleLongIterable
rejectWithIndex(LongIntPredicate predicate)

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

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

public ReversibleLongIterable
select(LongPredicate predicate)

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

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

public default ReversibleLongIterable
selectWithIndex(LongIntPredicate predicate)

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

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

public ReversibleLongIterable
Inherited from org.eclipse.collections.api.ordered.primitive.OrderedLongIterable:
collectWithIndexforEachWithIndexgetFirstindexOfrejectWithIndexselectWithIndextoStack

Method Detail

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

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

Doc from org.eclipse.collections.api.LongIterable.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(LongIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedLongIterable.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 ReversibleLongIterable distinct()
Since
6.0.
getLastback to summary
public long getLast()
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T, ? extends T> function)

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

Annotations
@Override
rejectback to summary
public ReversibleLongIterable reject(LongPredicate predicate)

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ReversibleLongIterable rejectWithIndex(LongIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ReversibleLongIterable select(LongPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ReversibleLongIterable selectWithIndex(LongIntPredicate predicate)

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

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

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