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

public Interface OrderedCharIterable

extends CharIterable
Known Direct Subinterfaces
org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable, org.eclipse.collections.api.stack.primitive.CharStack
Imports
java.util.Collection, org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.block.function.primitive.CharIntToObjectFunction, .CharToObjectFunction, .ObjectCharIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate, .CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure, org.eclipse.collections.api.collection.primitive.MutableCharCollection, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.stack.primitive.MutableCharStack

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

Redeclares org.eclipse.collections.api.CharIterable.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(CharIntToObjectFunction<? 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(CharIntToObjectFunction<? 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 char
public int
indexOf(char value)

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

public OrderedCharIterable
reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.reject.

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

public default OrderedCharIterable
rejectWithIndex(CharIntPredicate predicate)

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

public default <R extends MutableCharCollection> R
rejectWithIndex(CharIntPredicate predicate, R target)

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

public OrderedCharIterable
select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.select.

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

public default OrderedCharIterable
selectWithIndex(CharIntPredicate predicate)

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

public default <R extends MutableCharCollection> R
selectWithIndex(CharIntPredicate predicate, R target)

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

public default MutableCharStack
toStack()

Converts the collection to a CharStack.

Inherited from org.eclipse.collections.api.CharIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptycharIteratorchunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstaptoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

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

Redeclares org.eclipse.collections.api.CharIterable.collect.

Doc from org.eclipse.collections.api.CharIterable.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(CharIntToObjectFunction<? 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(CharIntToObjectFunction<? 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(CharIntProcedure procedure)
getFirstback to summary
public char getFirst()
indexOfback to summary
public int indexOf(char value)
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T, ? extends T> function)
rejectback to summary
public OrderedCharIterable reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public default OrderedCharIterable rejectWithIndex(CharIntPredicate predicate)

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

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

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

Since
11.1.
selectback to summary
public OrderedCharIterable select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.CharIterable.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public default OrderedCharIterable selectWithIndex(CharIntPredicate predicate)

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

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

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

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

Converts the collection to a CharStack.

Since
12.0.