CharIterable
, CharList
, MutableCharCollection
, OrderedCharIterable
, PrimitiveIterable
, ReversibleCharIterable
CharArrayList
, SynchronizedCharList
, UnmodifiableCharList
public interface MutableCharList extends MutableCharCollection, CharList
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
char... source) |
|
boolean |
addAllAtIndex(int index,
CharIterable source) |
|
void |
addAtIndex(int index,
char element) |
|
MutableCharList |
asSynchronized() |
|
MutableCharList |
asUnmodifiable() |
|
<V> MutableList<V> |
collect(CharToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> MutableList<V> |
collectWithIndex(CharIntToObjectFunction<? extends V> function) |
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableCharList |
distinct() |
|
default MutableCharList |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableCharList |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
char |
removeAtIndex(int index) |
|
MutableCharList |
reverseThis() |
|
MutableCharList |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
char |
set(int index,
char element) |
|
MutableCharList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableCharList |
subList(int fromIndex,
int toIndex) |
|
default MutableCharList |
tap(CharProcedure procedure) |
|
ImmutableCharList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableCharList |
toReversed() |
|
MutableCharList |
with(char element) |
|
MutableCharList |
withAll(CharIterable elements) |
|
MutableCharList |
without(char element) |
|
MutableCharList |
withoutAll(CharIterable elements) |
|
default <T> MutableList<CharObjectPair<T>> |
zip(Iterable<T> list) |
Returns a
MutableList formed from this MutableCharList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<CharCharPair> |
zipChar(CharIterable iterable) |
Returns a
MutableList formed from this MutableCharList and another CharList by
combining corresponding elements in pairs. |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
void addAtIndex(int index, char element)
boolean addAllAtIndex(int index, char... source)
boolean addAllAtIndex(int index, CharIterable source)
char removeAtIndex(int index)
char set(int index, char element)
MutableCharList select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharList
select
in interface MutableCharCollection
select
in interface OrderedCharIterable
select
in interface ReversibleCharIterable
MutableCharList reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharList
reject
in interface MutableCharCollection
reject
in interface OrderedCharIterable
reject
in interface ReversibleCharIterable
MutableCharList with(char element)
with
in interface MutableCharCollection
MutableCharList without(char element)
without
in interface MutableCharCollection
MutableCharList withAll(CharIterable elements)
withAll
in interface MutableCharCollection
MutableCharList withoutAll(CharIterable elements)
withoutAll
in interface MutableCharCollection
default MutableCharList tap(CharProcedure procedure)
tap
in interface CharIterable
tap
in interface CharList
tap
in interface MutableCharCollection
<V> MutableList<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharList
collect
in interface MutableCharCollection
collect
in interface OrderedCharIterable
collect
in interface ReversibleCharIterable
default <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex
in interface CharList
collectWithIndex
in interface OrderedCharIterable
collectWithIndex
in interface ReversibleCharIterable
MutableCharList reverseThis()
MutableCharList toReversed()
toReversed
in interface CharList
toReversed
in interface ReversibleCharIterable
MutableCharList distinct()
distinct
in interface CharList
distinct
in interface ReversibleCharIterable
MutableCharList sortThis()
MutableCharList asUnmodifiable()
asUnmodifiable
in interface MutableCharCollection
MutableCharList asSynchronized()
asSynchronized
in interface MutableCharCollection
ImmutableCharList toImmutable()
toImmutable
in interface CharList
toImmutable
in interface MutableCharCollection
MutableCharList subList(int fromIndex, int toIndex)
subList
in interface CharList
List.subList(int fromIndex, int toIndex)
default MutableList<CharCharPair> zipChar(CharIterable iterable)
MutableList
formed from this MutableCharList
and another CharList
by
combining corresponding elements in pairs. If one of the two CharList
s is longer than the other, its
remaining elements are ignored.default <T> MutableList<CharObjectPair<T>> zip(Iterable<T> list)
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.default MutableCharList newEmpty()
newEmpty
in interface MutableCharCollection
Copyright © 2004–2019. All rights reserved.