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

public Interface MutableCharList

extends MutableCharCollection, CharList
Imports
java.util.Comparator, .Random, org.eclipse.collections.api.block.comparator.primitive.CharComparator, 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.MutableCharCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.CharCharPair, .CharObjectPair

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

Method Summary

Modifier and TypeMethod and Description
public boolean
addAllAtIndex(int index, char... source)

public boolean
addAllAtIndex(int index, CharIterable source)

public void
addAtIndex(int index, char element)

public MutableCharList
public MutableCharList
public MutableList<Character>
public <V> MutableList<V>
collect(CharToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.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> MutableList<V>
collectWithIndex(CharIntToObjectFunction<? extends V> function)

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

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

public MutableCharList
public default MutableCharList
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableCharCollection.newEmpty.

Creates a new empty mutable version of the same List type.

public MutableCharList
reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.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 MutableCharList
rejectWithIndex(CharIntPredicate predicate)

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

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

public char
removeAtIndex(int index)

public MutableCharList
public MutableCharList
select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.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 MutableCharList
selectWithIndex(CharIntPredicate predicate)

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

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

public char
set(int index, char element)

public default MutableCharList
shuffleThis()

Randomly permutes this list mutating its contents and returns the same list (this).

public default MutableCharList
shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this).

public MutableCharList
sortThis()

Sorts this list mutating its contents and returns the same mutable list (this).

public default MutableCharList
sortThis(CharComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

public default <T> MutableCharList
sortThisBy(CharToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

public default <T> MutableCharList
sortThisBy(CharToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

public MutableCharList
public default void
swap(int index1, int index2)

public default MutableCharList
public ImmutableCharList
public MutableCharList
public MutableCharList
public MutableCharList
public MutableCharList
public MutableCharList
public default <T> MutableList<CharObjectPair<T>>
zip(Iterable<T> list)

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

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

public default MutableList<CharCharPair>
zipChar(CharIterable iterable)

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

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

Inherited from org.eclipse.collections.api.collection.primitive.MutableCharCollection:
addaddAlladdAllcharIteratorclearremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.list.primitive.CharList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOf

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, char... source)
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, CharIterable source)
addAtIndexback to summary
public void addAtIndex(int index, char element)
asSynchronizedback to summary
public MutableCharList asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableCharList asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableList<Character> boxed()
collectback to summary
public <V> MutableList<V> collect(CharToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.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.

collectWithIndexback to summary
public default <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)

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

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

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

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

Annotations
@Override
Since
6.0.
newEmptyback to summary
public default MutableCharList newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableCharCollection.newEmpty.

Creates a new empty mutable version of the same List type.

Since
9.2.
rejectback to summary
public MutableCharList reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.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 MutableCharList rejectWithIndex(CharIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
removeAtIndexback to summary
public char removeAtIndex(int index)
reverseThisback to summary
public MutableCharList reverseThis()
selectback to summary
public MutableCharList select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.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 MutableCharList selectWithIndex(CharIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
setback to summary
public char set(int index, char element)
shuffleThisback to summary
public default MutableCharList shuffleThis()

Randomly permutes this list mutating its contents and returns the same list (this). Uses java.util.Random as the source of randomness.

shuffleThisback to summary
public default MutableCharList shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this). Implements the Fisher-Yates shuffle algorithm using the provided source of randomness.

sortThisback to summary
public MutableCharList sortThis()

Sorts this list mutating its contents and returns the same mutable list (this).

sortThisback to summary
public default MutableCharList sortThis(CharComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

sortThisByback to summary
public default <T> MutableCharList sortThisBy(CharToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

sortThisByback to summary
public default <T> MutableCharList sortThisBy(CharToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

subListback to summary
public MutableCharList subList(int fromIndex, int toIndex)

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

Annotations
@Override
swapback to summary
public default void swap(int index1, int index2)
tapback to summary
public default MutableCharList tap(CharProcedure procedure)

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.toImmutable, org.eclipse.collections.api.list.primitive.CharList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableCharList toReversed()

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

Annotations
@Override
withback to summary
public MutableCharList with(char element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.with.

Annotations
@Override
withAllback to summary
public MutableCharList withAll(CharIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.withAll.

Annotations
@Override
withoutback to summary
public MutableCharList without(char element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.without.

Annotations
@Override
withoutAllback to summary
public MutableCharList withoutAll(CharIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.withoutAll.

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

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

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

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

Returns a MutableList formed from this MutableCharList 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.