Top Description Fields Constructors Methods
org.eclipse.collections.impl.list.mutable.primitive

public Class UnmodifiableCharList

extends AbstractUnmodifiableCharCollection
implements MutableCharList
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.list.primitive.MutableCharList, org.eclipse.collections.api.list.primitive.CharList, org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable, org.eclipse.collections.api.ordered.primitive.OrderedCharIterable, org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableCharCollection
Imports
java.util.Collection, org.eclipse.collections.api.CharIterable, .LazyCharIterable, 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.list.MutableList, org.eclipse.collections.api.tuple.primitive.CharCharPair, .CharObjectPair, org.eclipse.collections.api.stack.primitive.MutableCharStack, org.eclipse.collections.api.list.primitive.CharList, .ImmutableCharList, .MutableCharList, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection, org.eclipse.collections.impl.factory.primitive.CharLists, .CharStacks, org.eclipse.collections.impl.lazy.primitive.ReverseCharIterable

This file was automatically generated from template file unmodifiablePrimitiveList.stg.
Since
3.1.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public void
public LazyCharIterable
public MutableCharList
public MutableCharList
public int
public MutableList<Character>
public <V> MutableList<V>
public <V> MutableList<V>
collectWithIndex(CharIntToObjectFunction<? extends V> function)

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

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

public <V, R extends Collection<V>> R
collectWithIndex(CharIntToObjectFunction<? extends V> function, R target)

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

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public MutableCharList
public long
public boolean
public void
public char
public char
public char
private MutableCharList
public int
public int
public <T> T
public int
public MutableCharList
public MutableCharList
public MutableCharList
rejectWithIndex(CharIntPredicate predicate)

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

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

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

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

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

public char
public MutableCharList
public MutableCharList
public MutableCharList
selectWithIndex(CharIntPredicate predicate)

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

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

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

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

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

public char
public MutableCharList
shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableCharList.shuffleThis.

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

public MutableCharList
sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableCharList.sortThis.

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

public MutableCharList
public ImmutableCharList
public MutableCharList
public MutableCharStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedCharIterable.toStack.

Converts the collection to a CharStack.

public UnmodifiableCharList
public UnmodifiableCharList
public UnmodifiableCharList
public UnmodifiableCharList
public <T> MutableList<CharObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public MutableList<CharCharPair>
zipChar(CharIterable iterable)

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

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

Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragecharIteratorchunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetCharCollectioninjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.serialVersionUID.

Constructor Detail

UnmodifiableCharListback to summary
public UnmodifiableCharList(MutableCharList list)

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, char... source)

Implements org.eclipse.collections.api.list.primitive.MutableCharList.addAllAtIndex.

Annotations
@Override
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, CharIterable source)

Implements org.eclipse.collections.api.list.primitive.MutableCharList.addAllAtIndex.

Annotations
@Override
addAtIndexback to summary
public void addAtIndex(int index, char element)

Implements org.eclipse.collections.api.list.primitive.MutableCharList.addAtIndex.

Annotations
@Override
asReversedback to summary
public LazyCharIterable asReversed()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.asReversed.

Annotations
@Override
asSynchronizedback to summary
public MutableCharList asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.asSynchronized.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableCharCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableCharList asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.asUnmodifiable.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableCharCollection.asUnmodifiable.

Annotations
@Override
binarySearchback to summary
public int binarySearch(char value)

Implements org.eclipse.collections.api.list.primitive.CharList.binarySearch.

Annotations
@Override
boxedback to summary
public MutableList<Character> boxed()

Implements org.eclipse.collections.api.list.primitive.MutableCharList.boxed.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.collect.

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

Overrides default org.eclipse.collections.api.list.primitive.MutableCharList.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.
collectWithIndexback to summary
public <V, R extends Collection<V>> R collectWithIndex(CharIntToObjectFunction<? extends V> function, R target)

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

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

Since
9.1.
distinctback to summary
public MutableCharList distinct()

Implements org.eclipse.collections.api.list.primitive.MutableCharList.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public long dotProduct(CharList list)

Implements org.eclipse.collections.api.list.primitive.CharList.dotProduct.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherList)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.list.primitive.CharList.equals.

Doc from org.eclipse.collections.api.list.primitive.CharList.equals.

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

Annotations
@Override
forEachWithIndexback to summary
public void forEachWithIndex(CharIntProcedure procedure)

Implements org.eclipse.collections.api.ordered.primitive.OrderedCharIterable.forEachWithIndex.

Annotations
@Override
getback to summary
public char get(int index)

Implements org.eclipse.collections.api.list.primitive.CharList.get.

Annotations
@Override
getFirstback to summary
public char getFirst()

Implements org.eclipse.collections.api.ordered.primitive.OrderedCharIterable.getFirst.

Annotations
@Override
getLastback to summary
public char getLast()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.getLast.

Annotations
@Override
getMutableCharListback to summary
private MutableCharList getMutableCharList()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.list.primitive.CharList.hashCode.

Doc from org.eclipse.collections.api.list.primitive.CharList.hashCode.

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

Annotations
@Override
indexOfback to summary
public int indexOf(char value)

Implements org.eclipse.collections.api.ordered.primitive.OrderedCharIterable.indexOf.

Annotations
@Override
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable.injectIntoWithIndex.

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(char value)

Implements org.eclipse.collections.api.list.primitive.CharList.lastIndexOf.

Annotations
@Override
newEmptyback to summary
public MutableCharList newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableCharList.newEmpty, org.eclipse.collections.api.collection.primitive.MutableCharCollection.newEmpty.

Doc from org.eclipse.collections.api.list.primitive.MutableCharList.newEmpty.

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

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.reject.

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

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

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

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

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

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

Since
11.1.
removeAtIndexback to summary
public char removeAtIndex(int index)

Implements org.eclipse.collections.api.list.primitive.MutableCharList.removeAtIndex.

Annotations
@Override
reverseThisback to summary
public MutableCharList reverseThis()

Implements org.eclipse.collections.api.list.primitive.MutableCharList.reverseThis.

Annotations
@Override
selectback to summary
public MutableCharList select(CharPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.select.

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

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

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

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

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

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

Since
11.1.
setback to summary
public char set(int index, char element)

Implements org.eclipse.collections.api.list.primitive.MutableCharList.set.

Annotations
@Override
shuffleThisback to summary
public MutableCharList shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableCharList.shuffleThis.

Doc from org.eclipse.collections.api.list.primitive.MutableCharList.shuffleThis.

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

Annotations
@Override
sortThisback to summary
public MutableCharList sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableCharList.sortThis.

Doc from org.eclipse.collections.api.list.primitive.MutableCharList.sortThis.

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

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

Implements org.eclipse.collections.api.list.primitive.MutableCharList.subList.

Annotations
@Override
toImmutableback to summary
public ImmutableCharList toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.toImmutable.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.toImmutable, org.eclipse.collections.api.collection.primitive.MutableCharCollection.toImmutable.

Doc from org.eclipse.collections.api.list.primitive.MutableCharList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableCharList toReversed()

Implements org.eclipse.collections.api.list.primitive.MutableCharList.toReversed.

Annotations
@Override
toStackback to summary
public MutableCharStack toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedCharIterable.toStack.

Doc from org.eclipse.collections.api.ordered.primitive.OrderedCharIterable.toStack.

Converts the collection to a CharStack.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.with.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.with, org.eclipse.collections.api.collection.primitive.MutableCharCollection.with.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.withAll.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.withAll, org.eclipse.collections.api.collection.primitive.MutableCharCollection.withAll.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.without.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.without, org.eclipse.collections.api.collection.primitive.MutableCharCollection.without.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection.withoutAll.

Implements org.eclipse.collections.api.list.primitive.MutableCharList.withoutAll, org.eclipse.collections.api.collection.primitive.MutableCharCollection.withoutAll.

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

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

Doc from org.eclipse.collections.api.list.primitive.MutableCharList.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 MutableList<CharCharPair> zipChar(CharIterable iterable)

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

Doc from org.eclipse.collections.api.list.primitive.MutableCharList.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.