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

public Interface ReversibleShortIterable

extends OrderedShortIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.ShortList
Imports
org.eclipse.collections.api.LazyShortIterable, org.eclipse.collections.api.block.function.primitive.ShortIntToObjectFunction, .ShortToObjectFunction, .ObjectShortIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate, .ShortPredicate, 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 LazyShortIterable
public <V> ReversibleIterable<V>
collect(ShortToObjectFunction<? extends V> function)

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

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

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

public ReversibleShortIterable
public short
public <T> T
public ReversibleShortIterable
reject(ShortPredicate predicate)

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

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

public default ReversibleShortIterable
rejectWithIndex(ShortIntPredicate predicate)

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

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

public ReversibleShortIterable
select(ShortPredicate predicate)

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

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

public default ReversibleShortIterable
selectWithIndex(ShortIntPredicate predicate)

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

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

public ReversibleShortIterable
Inherited from org.eclipse.collections.api.ordered.primitive.OrderedShortIterable:
collectWithIndexforEachWithIndexgetFirstindexOfrejectWithIndexselectWithIndextoStack

Method Detail

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

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

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

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

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

Annotations
@Override
rejectback to summary
public ReversibleShortIterable reject(ShortPredicate predicate)

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ReversibleShortIterable rejectWithIndex(ShortIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ReversibleShortIterable select(ShortPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ReversibleShortIterable selectWithIndex(ShortIntPredicate predicate)

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

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

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