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

public Interface ImmutableCharList

extends ImmutableCharCollection, CharList
Imports
org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.block.function.primitive.CharIntToObjectFunction, .CharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate, .CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, org.eclipse.collections.api.collection.primitive.ImmutableCharCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.CharCharPair, .CharObjectPair

This file was automatically generated from template file immutablePrimitiveList.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableList<V>
collect(CharToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.collect, org.eclipse.collections.api.list.primitive.CharList.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default <V> ImmutableList<V>
collectWithIndex(CharIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.CharList.collectWithIndex.

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

public ImmutableCharList
public ImmutableCharList
public ImmutableCharList
public ImmutableCharList
public ImmutableCharList
public ImmutableCharList
reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.reject, org.eclipse.collections.api.list.primitive.CharList.reject.

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

public default ImmutableCharList
rejectWithIndex(CharIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.CharList.rejectWithIndex.

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

public ImmutableCharList
select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.select, org.eclipse.collections.api.list.primitive.CharList.select.

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

public default ImmutableCharList
selectWithIndex(CharIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.CharList.selectWithIndex.

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

public ImmutableCharList
public default ImmutableCharList
public ImmutableCharList
public default <T> ImmutableList<CharObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.CharList.zip.

Returns an ImmutableList formed from this ImmutableCharList and a ListIterable by combining corresponding elements in pairs.

public default ImmutableList<CharCharPair>
zipChar(CharIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.CharList.zipChar.

Returns an ImmutableList formed from this ImmutableCharList and another CharList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.list.primitive.CharList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOftoImmutable

Method Detail

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.collect, org.eclipse.collections.api.list.primitive.CharList.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> ImmutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.CharList.collectWithIndex.

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

Annotations
@Override
Since
9.1.
distinctback to summary
public ImmutableCharList distinct()

Redeclares org.eclipse.collections.api.list.primitive.CharList.distinct.

Annotations
@Override
Since
6.0.
newWithback to summary
public ImmutableCharList newWith(char element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableCharList newWithAll(CharIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableCharList newWithout(char element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableCharList newWithoutAll(CharIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableCharList reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.reject, org.eclipse.collections.api.list.primitive.CharList.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 ImmutableCharList rejectWithIndex(CharIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.CharList.rejectWithIndex.

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableCharList select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.select, org.eclipse.collections.api.list.primitive.CharList.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 ImmutableCharList selectWithIndex(CharIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.CharList.selectWithIndex.

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

Annotations
@Override
Since
11.1.
subListback to summary
public ImmutableCharList subList(int fromIndex, int toIndex)

Redeclares org.eclipse.collections.api.list.primitive.CharList.subList.

Annotations
@Override
tapback to summary
public default ImmutableCharList tap(CharProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.tap, org.eclipse.collections.api.list.primitive.CharList.tap.

Annotations
@Override
Since
9.0.
toReversedback to summary
public ImmutableCharList toReversed()

Redeclares org.eclipse.collections.api.list.primitive.CharList.toReversed.

Annotations
@Override
zipback to summary
public default <T> ImmutableList<CharObjectPair<T>> zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.CharList.zip.

Returns an ImmutableList formed from this ImmutableCharList and a ListIterable by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.

Since
9.1.
zipCharback to summary
public default ImmutableList<CharCharPair> zipChar(CharIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.CharList.zipChar.

Returns an ImmutableList formed from this ImmutableCharList and another CharList by combining corresponding elements in pairs. If one of the two CharLists is longer than the other, its remaining elements are ignored.

Since
9.1.