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

public Interface OrderedLongIterable

extends LongIterable
Known Direct Subinterfaces
org.eclipse.collections.api.ordered.primitive.ReversibleLongIterable, org.eclipse.collections.api.stack.primitive.LongStack
Imports
java.util.Collection, org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.block.function.primitive.LongIntToObjectFunction, .LongToObjectFunction, .ObjectLongIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongIntPredicate, .LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure, org.eclipse.collections.api.collection.primitive.MutableLongCollection, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.stack.primitive.MutableLongStack

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

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

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

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

public OrderedLongIterable
reject(LongPredicate predicate)

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

public default OrderedLongIterable
rejectWithIndex(LongIntPredicate predicate)

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

public default <R extends MutableLongCollection> R
rejectWithIndex(LongIntPredicate predicate, R target)

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

public OrderedLongIterable
select(LongPredicate predicate)

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

public default OrderedLongIterable
selectWithIndex(LongIntPredicate predicate)

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

public default <R extends MutableLongCollection> R
selectWithIndex(LongIntPredicate predicate, R target)

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

public default MutableLongStack
toStack()

Converts the collection to a LongStack.

Inherited from org.eclipse.collections.api.LongIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortlongIteratormaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstaptoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

Redeclares org.eclipse.collections.api.LongIterable.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> OrderedIterable<V> collectWithIndex(LongIntToObjectFunction<? 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(LongIntToObjectFunction<? 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(LongIntProcedure procedure)
getFirstback to summary
public long getFirst()
indexOfback to summary
public int indexOf(long value)
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T, ? extends T> function)
rejectback to summary
public OrderedLongIterable reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.LongIterable.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 OrderedLongIterable rejectWithIndex(LongIntPredicate predicate)

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

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

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

Since
11.1.
selectback to summary
public OrderedLongIterable select(LongPredicate predicate)

Redeclares org.eclipse.collections.api.LongIterable.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 OrderedLongIterable selectWithIndex(LongIntPredicate predicate)

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

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

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

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

Converts the collection to a LongStack.

Since
12.0.