public interface MutableCharList extends MutableCharCollection, CharList
| Modifier and Type | Method and 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.
|
default MutableCharList |
rejectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharList excluding all elements with corresponding indexes matching 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.
|
default MutableCharList |
selectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharList including all elements with corresponding indexes matching the specified predicate.
|
char |
set(int index,
char element) |
default MutableCharList |
shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this).
|
default MutableCharList |
shuffleThis(Random rnd)
Randomly permutes this list mutating its contents and returns the same list (this).
|
MutableCharList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
default MutableCharList |
sortThis(CharComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
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. |
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. |
MutableCharList |
subList(int fromIndex,
int toIndex) |
default void |
swap(int index1,
int index2) |
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. |
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllbinarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOfasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid 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)
default void swap(int index1,
int index2)
MutableCharList select(CharPredicate predicate)
CharIterableselect in interface CharIterableselect in interface CharListselect in interface MutableCharCollectionselect in interface OrderedCharIterableselect in interface ReversibleCharIterableMutableCharList reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface CharListreject in interface MutableCharCollectionreject in interface OrderedCharIterablereject in interface ReversibleCharIterableMutableCharList with(char element)
with in interface MutableCharCollectionMutableCharList without(char element)
without in interface MutableCharCollectionMutableCharList withAll(CharIterable elements)
withAll in interface MutableCharCollectionMutableCharList withoutAll(CharIterable elements)
withoutAll in interface MutableCharCollectiondefault MutableCharList tap(CharProcedure procedure)
tap in interface CharIterabletap in interface CharListtap in interface MutableCharCollectiondefault MutableCharList selectWithIndex(CharIntPredicate predicate)
selectWithIndex in interface CharListselectWithIndex in interface OrderedCharIterableselectWithIndex in interface ReversibleCharIterabledefault MutableCharList rejectWithIndex(CharIntPredicate predicate)
rejectWithIndex in interface CharListrejectWithIndex in interface OrderedCharIterablerejectWithIndex in interface ReversibleCharIterable<V> MutableList<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface CharListcollect in interface MutableCharCollectioncollect in interface OrderedCharIterablecollect in interface ReversibleCharIterabledefault <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex in interface CharListcollectWithIndex in interface OrderedCharIterablecollectWithIndex in interface ReversibleCharIterableMutableCharList reverseThis()
MutableCharList toReversed()
toReversed in interface CharListtoReversed in interface ReversibleCharIterableMutableCharList distinct()
distinct in interface CharListdistinct in interface ReversibleCharIterableMutableCharList sortThis()
default MutableCharList sortThis(CharComparator comparator)
default <T> MutableCharList sortThisBy(CharToObjectFunction<T> function)
function.default <T> MutableCharList sortThisBy(CharToObjectFunction<T> function, Comparator<? super T> comparator)
function using the provided comparator.default MutableCharList shuffleThis()
java.util.Random as the source of randomness.default MutableCharList shuffleThis(Random rnd)
MutableCharList asUnmodifiable()
asUnmodifiable in interface MutableCharCollectionMutableCharList asSynchronized()
asSynchronized in interface MutableCharCollectionImmutableCharList toImmutable()
toImmutable in interface CharListtoImmutable in interface MutableCharCollectionMutableCharList subList(int fromIndex, int toIndex)
subList in interface CharListList.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 CharLists 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 MutableCharCollectionCopyright © 2004–2022. All rights reserved.