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

public Interface OrderedByteIterable

extends ByteIterable
Known Direct Subinterfaces
org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable, org.eclipse.collections.api.stack.primitive.ByteStack
Imports
java.util.Collection, org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.block.function.primitive.ByteIntToObjectFunction, .ByteToObjectFunction, .ObjectByteIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate, .BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure, org.eclipse.collections.api.collection.primitive.MutableByteCollection, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.stack.primitive.MutableByteStack

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

Redeclares org.eclipse.collections.api.ByteIterable.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(ByteIntToObjectFunction<? 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(ByteIntToObjectFunction<? 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 byte
public int
indexOf(byte value)

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

public OrderedByteIterable
reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.reject.

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

public default OrderedByteIterable
rejectWithIndex(ByteIntPredicate predicate)

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

public default <R extends MutableByteCollection> R
rejectWithIndex(ByteIntPredicate predicate, R target)

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

public OrderedByteIterable
select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.select.

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

public default OrderedByteIterable
selectWithIndex(ByteIntPredicate predicate)

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

public default <R extends MutableByteCollection> R
selectWithIndex(ByteIntPredicate predicate, R target)

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

public default MutableByteStack
toStack()

Converts the collection to a ByteStack.

Inherited from org.eclipse.collections.api.ByteIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptybyteIteratorchunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstaptoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

Redeclares org.eclipse.collections.api.ByteIterable.collect.

Doc from org.eclipse.collections.api.ByteIterable.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(ByteIntToObjectFunction<? 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(ByteIntToObjectFunction<? 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(ByteIntProcedure procedure)
getFirstback to summary
public byte getFirst()
indexOfback to summary
public int indexOf(byte value)
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectByteIntToObjectFunction<? super T, ? extends T> function)
rejectback to summary
public OrderedByteIterable reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public default OrderedByteIterable rejectWithIndex(ByteIntPredicate predicate)

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

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

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

Since
11.1.
selectback to summary
public OrderedByteIterable select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public default OrderedByteIterable selectWithIndex(ByteIntPredicate predicate)

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

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

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

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

Converts the collection to a ByteStack.

Since
12.0.