public class UnmodifiableCharList extends AbstractUnmodifiableCharCollection implements MutableCharList
| Constructor and Description |
|---|
UnmodifiableCharList(MutableCharList list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
char... source) |
boolean |
addAllAtIndex(int index,
CharIterable source) |
void |
addAtIndex(int index,
char element) |
LazyCharIterable |
asReversed() |
MutableCharList |
asSynchronized() |
MutableCharList |
asUnmodifiable() |
int |
binarySearch(char value) |
<V> MutableList<V> |
collect(CharToObjectFunction<? extends V> function) |
<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.
|
<V,R extends Collection<V>> |
collectWithIndex(CharIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableCharList |
distinct() |
long |
dotProduct(CharList list) |
boolean |
equals(Object otherList) |
void |
forEachWithIndex(CharIntProcedure procedure) |
char |
get(int index) |
char |
getFirst() |
char |
getLast() |
int |
hashCode() |
int |
indexOf(char value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectCharIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(char value) |
MutableCharList |
newEmpty() |
MutableCharList |
reject(CharPredicate predicate) |
MutableCharList |
rejectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableCharCollection> |
rejectWithIndex(CharIntPredicate predicate,
R target)
Returns a new MutableCharCollection excluding all elements with corresponding indexes matching the specified predicate.
|
char |
removeAtIndex(int index) |
MutableCharList |
reverseThis() |
MutableCharList |
select(CharPredicate predicate) |
MutableCharList |
selectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableCharCollection> |
selectWithIndex(CharIntPredicate predicate,
R target)
Returns a new MutableCharCollection including all elements with corresponding indexes matching the specified predicate.
|
char |
set(int index,
char element) |
MutableCharList |
shuffleThis() |
MutableCharList |
sortThis() |
MutableCharList |
subList(int fromIndex,
int toIndex) |
ImmutableCharList |
toImmutable() |
MutableCharList |
toReversed() |
UnmodifiableCharList |
with(char element) |
UnmodifiableCharList |
withAll(CharIterable elements) |
UnmodifiableCharList |
without(char element) |
UnmodifiableCharList |
withoutAll(CharIterable elements) |
<T> MutableList<CharObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<CharCharPair> |
zipChar(CharIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, charIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringshuffleThis, sortThis, sortThisBy, sortThisBy, swap, tapadd, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllforEachInBothallSatisfy, 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, toStringpublic UnmodifiableCharList(MutableCharList list)
public char getFirst()
getFirst in interface OrderedCharIterablepublic char getLast()
getLast in interface ReversibleCharIterablepublic int indexOf(char value)
indexOf in interface OrderedCharIterablepublic int lastIndexOf(char value)
lastIndexOf in interface CharListpublic void addAtIndex(int index,
char element)
addAtIndex in interface MutableCharListpublic boolean addAllAtIndex(int index,
char... source)
addAllAtIndex in interface MutableCharListpublic boolean addAllAtIndex(int index,
CharIterable source)
addAllAtIndex in interface MutableCharListpublic char removeAtIndex(int index)
removeAtIndex in interface MutableCharListpublic char set(int index,
char element)
set in interface MutableCharListpublic UnmodifiableCharList with(char element)
with in interface MutableCharCollectionwith in interface MutableCharListwith in class AbstractUnmodifiableCharCollectionpublic UnmodifiableCharList without(char element)
without in interface MutableCharCollectionwithout in interface MutableCharListwithout in class AbstractUnmodifiableCharCollectionpublic UnmodifiableCharList withAll(CharIterable elements)
withAll in interface MutableCharCollectionwithAll in interface MutableCharListwithAll in class AbstractUnmodifiableCharCollectionpublic UnmodifiableCharList withoutAll(CharIterable elements)
withoutAll in interface MutableCharCollectionwithoutAll in interface MutableCharListwithoutAll in class AbstractUnmodifiableCharCollectionpublic MutableCharList select(CharPredicate predicate)
select in interface CharIterableselect in interface MutableCharCollectionselect in interface CharListselect in interface MutableCharListselect in interface OrderedCharIterableselect in interface ReversibleCharIterableselect in class AbstractUnmodifiableCharCollectionpublic MutableCharList reject(CharPredicate predicate)
reject in interface CharIterablereject in interface MutableCharCollectionreject in interface CharListreject in interface MutableCharListreject in interface OrderedCharIterablereject in interface ReversibleCharIterablereject in class AbstractUnmodifiableCharCollectionpublic <V> MutableList<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharIterablecollect in interface MutableCharCollectioncollect in interface CharListcollect in interface MutableCharListcollect in interface OrderedCharIterablecollect in interface ReversibleCharIterablecollect in class AbstractUnmodifiableCharCollectionpublic MutableCharList sortThis()
sortThis in interface MutableCharListpublic MutableCharList shuffleThis()
shuffleThis in interface MutableCharListpublic int binarySearch(char value)
binarySearch in interface CharListpublic long dotProduct(CharList list)
dotProduct in interface CharListpublic boolean equals(Object otherList)
public int hashCode()
public MutableCharList asUnmodifiable()
asUnmodifiable in interface MutableCharCollectionasUnmodifiable in interface MutableCharListasUnmodifiable in class AbstractUnmodifiableCharCollectionpublic MutableCharList asSynchronized()
asSynchronized in interface MutableCharCollectionasSynchronized in interface MutableCharListasSynchronized in class AbstractUnmodifiableCharCollectionpublic ImmutableCharList toImmutable()
toImmutable in interface MutableCharCollectiontoImmutable in interface CharListtoImmutable in interface MutableCharListtoImmutable in class AbstractUnmodifiableCharCollectionpublic MutableCharList newEmpty()
newEmpty in interface MutableCharCollectionnewEmpty in interface MutableCharListpublic MutableCharList reverseThis()
reverseThis in interface MutableCharListpublic MutableCharList toReversed()
toReversed in interface CharListtoReversed in interface MutableCharListtoReversed in interface ReversibleCharIterablepublic void forEachWithIndex(CharIntProcedure procedure)
forEachWithIndex in interface OrderedCharIterablepublic LazyCharIterable asReversed()
asReversed in interface ReversibleCharIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectCharIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedCharIterableinjectIntoWithIndex in interface ReversibleCharIterablepublic MutableCharList distinct()
distinct in interface CharListdistinct in interface MutableCharListdistinct in interface ReversibleCharIterablepublic MutableCharList subList(int fromIndex, int toIndex)
subList in interface CharListsubList in interface MutableCharListpublic MutableList<CharCharPair> zipChar(CharIterable iterable)
zipChar in interface CharListzipChar in interface MutableCharListpublic <T> MutableList<CharObjectPair<T>> zip(Iterable<T> iterable)
zip in interface CharListzip in interface MutableCharListpublic MutableCharList selectWithIndex(CharIntPredicate predicate)
selectWithIndex in interface CharListselectWithIndex in interface MutableCharListselectWithIndex in interface OrderedCharIterableselectWithIndex in interface ReversibleCharIterablepublic <R extends MutableCharCollection> R selectWithIndex(CharIntPredicate predicate, R target)
selectWithIndex in interface OrderedCharIterablepublic MutableCharList rejectWithIndex(CharIntPredicate predicate)
rejectWithIndex in interface CharListrejectWithIndex in interface MutableCharListrejectWithIndex in interface OrderedCharIterablerejectWithIndex in interface ReversibleCharIterablepublic <R extends MutableCharCollection> R rejectWithIndex(CharIntPredicate predicate, R target)
rejectWithIndex in interface OrderedCharIterablepublic <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex in interface CharListcollectWithIndex in interface MutableCharListcollectWithIndex in interface OrderedCharIterablecollectWithIndex in interface ReversibleCharIterablepublic <V,R extends Collection<V>> R collectWithIndex(CharIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedCharIterableCopyright © 2004–2022. All rights reserved.