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

public Interface ReversibleIntIterable

extends OrderedIntIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.IntList
Imports
org.eclipse.collections.api.LazyIntIterable, org.eclipse.collections.api.block.function.primitive.IntIntToObjectFunction, .IntToObjectFunction, .ObjectIntIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate, .IntPredicate, 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 LazyIntIterable
public <V> ReversibleIterable<V>
collect(IntToObjectFunction<? extends V> function)

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

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

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

public ReversibleIntIterable
public int
public <T> T
public ReversibleIntIterable
reject(IntPredicate predicate)

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

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

public default ReversibleIntIterable
rejectWithIndex(IntIntPredicate predicate)

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

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

public ReversibleIntIterable
select(IntPredicate predicate)

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

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

public default ReversibleIntIterable
selectWithIndex(IntIntPredicate predicate)

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

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

public ReversibleIntIterable
Inherited from org.eclipse.collections.api.ordered.primitive.OrderedIntIterable:
collectWithIndexforEachWithIndexgetFirstindexOfrejectWithIndexselectWithIndextoStack

Method Detail

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

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

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

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

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

Annotations
@Override
rejectback to summary
public ReversibleIntIterable reject(IntPredicate predicate)

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ReversibleIntIterable rejectWithIndex(IntIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ReversibleIntIterable select(IntPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ReversibleIntIterable selectWithIndex(IntIntPredicate predicate)

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

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

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