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

public Interface OrderedIntIterable

extends IntIterable
Known Direct Subinterfaces
org.eclipse.collections.api.ordered.primitive.ReversibleIntIterable, org.eclipse.collections.api.stack.primitive.IntStack
Imports
java.util.Collection, org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.block.function.primitive.IntIntToObjectFunction, .IntToObjectFunction, .ObjectIntIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate, .IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure, org.eclipse.collections.api.collection.primitive.MutableIntCollection, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.stack.primitive.MutableIntStack

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

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

public default <V> OrderedIterable<V>
collectWithIndex(IntIntToObjectFunction<? 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(IntIntToObjectFunction<? 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 int
public int
indexOf(int value)

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

public OrderedIntIterable
reject(IntPredicate predicate)

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

public default OrderedIntIterable
rejectWithIndex(IntIntPredicate predicate)

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

public default <R extends MutableIntCollection> R
rejectWithIndex(IntIntPredicate predicate, R target)

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

public OrderedIntIterable
select(IntPredicate predicate)

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

public default OrderedIntIterable
selectWithIndex(IntIntPredicate predicate)

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

public default <R extends MutableIntCollection> R
selectWithIndex(IntIntPredicate predicate, R target)

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

public default MutableIntStack
toStack()

Converts the collection to a IntStack.

Inherited from org.eclipse.collections.api.IntIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortintIteratormaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstaptoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

Redeclares org.eclipse.collections.api.IntIterable.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> OrderedIterable<V> collectWithIndex(IntIntToObjectFunction<? 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(IntIntToObjectFunction<? 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(IntIntProcedure procedure)
getFirstback to summary
public int getFirst()
indexOfback to summary
public int indexOf(int value)
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectIntIntToObjectFunction<? super T, ? extends T> function)
rejectback to summary
public OrderedIntIterable reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.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 OrderedIntIterable rejectWithIndex(IntIntPredicate predicate)

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

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

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

Since
11.1.
selectback to summary
public OrderedIntIterable select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.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 OrderedIntIterable selectWithIndex(IntIntPredicate predicate)

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

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

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

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

Converts the collection to a IntStack.

Since
12.0.