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

public Interface CharList

extends ReversibleCharIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.ImmutableCharList, org.eclipse.collections.api.list.primitive.MutableCharList
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.CharCharProcedure, .CharProcedure, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable, org.eclipse.collections.api.tuple.primitive.CharCharPair, .CharObjectPair, java.util.Objects

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

Method Summary

Modifier and TypeMethod and Description
public int
binarySearch(char value)

public <V> ListIterable<V>
collect(CharToObjectFunction<? extends V> function)

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

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

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

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

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

public CharList
public long
public boolean
equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

public default void
forEachInBoth(CharList other, CharCharProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

public char
get(int index)

public int
hashCode()

Follows the same general contract as java.util.List#hashCode().

public int
lastIndexOf(char value)

public CharList
reject(CharPredicate predicate)

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

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

public default CharList
rejectWithIndex(CharIntPredicate predicate)

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

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

public CharList
select(CharPredicate predicate)

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

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

public default CharList
selectWithIndex(CharIntPredicate predicate)

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

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

public CharList
subList(int fromIndex, int toIndex)

public default CharList
public ImmutableCharList
toImmutable()

Returns an immutable copy of this list.

public CharList
public default <T> ListIterable<CharObjectPair<T>>
zip(Iterable<T> iterable)

Returns a ListIterable formed from this CharList and a ListIterable by combining corresponding elements in pairs.

public default ListIterable<CharCharPair>
zipChar(CharIterable iterable)

Returns a ListIterable formed from this CharList and another CharList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable:
asReversedgetLastinjectIntoWithIndex

Method Detail

binarySearchback to summary
public int binarySearch(char value)
collectback to summary
public <V> ListIterable<V> collect(CharToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.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> ListIterable<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)

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

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

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public long dotProduct(CharList list)
equalsback to summary
public boolean equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachInBothback to summary
public default void forEachInBoth(CharList other, CharCharProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

Since
11.1
getback to summary
public char get(int index)
hashCodeback to summary
public int hashCode()

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(char value)
rejectback to summary
public CharList reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.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 CharList rejectWithIndex(CharIntPredicate predicate)

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

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

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.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 CharList selectWithIndex(CharIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
subListback to summary
public CharList subList(int fromIndex, int toIndex)
Since
5.0.
See Also
java.util.List#subList(int fromIndex, int toIndex)
tapback to summary
public default CharList tap(CharProcedure procedure)

Overrides default org.eclipse.collections.api.CharIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableCharList toImmutable()

Returns an immutable copy of this list. If the list is immutable, it returns itself.

toReversedback to summary
public CharList toReversed()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.toReversed.

Annotations
@Override
Since
5.0.
zipback to summary
public default <T> ListIterable<CharObjectPair<T>> zip(Iterable<T> iterable)

Returns a ListIterable formed from this CharList 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 ListIterable<CharCharPair> zipChar(CharIterable iterable)

Returns a ListIterable formed from this CharList 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.