public class SynchronizedCharList extends AbstractSynchronizedCharCollection implements MutableCharList
MutableCharList. It is imperative that the user manually synchronize on the on the
collection when iterating over it using an iterator or stream.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableCharList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedCharList(MutableCharList list) |
SynchronizedCharList(MutableCharList list,
Object newLock) |
| 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 |
asLazy() |
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 |
forEachInBoth(CharList other,
CharCharProcedure procedure) |
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 |
shuffleThis(Random rnd) |
MutableCharList |
sortThis() |
MutableCharList |
sortThis(CharComparator comparator) |
<T> MutableCharList |
sortThisBy(CharToObjectFunction<T> function) |
<T> MutableCharList |
sortThisBy(CharToObjectFunction<T> function,
Comparator<? super T> comparator) |
MutableCharList |
subList(int fromIndex,
int toIndex) |
ImmutableCharList |
toImmutable() |
MutableCharList |
toReversed() |
SynchronizedCharList |
with(char element) |
SynchronizedCharList |
withAll(CharIterable elements) |
SynchronizedCharList |
without(char element) |
SynchronizedCharList |
withoutAll(CharIterable elements) |
<T> MutableList<CharObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<CharCharPair> |
zipChar(CharIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, toStringswap, tapadd, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllallSatisfy, anySatisfy, 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 SynchronizedCharList(MutableCharList list)
public SynchronizedCharList(MutableCharList list, Object newLock)
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 SynchronizedCharList with(char element)
with in interface MutableCharCollectionwith in interface MutableCharListwith in class AbstractSynchronizedCharCollectionpublic SynchronizedCharList without(char element)
without in interface MutableCharCollectionwithout in interface MutableCharListwithout in class AbstractSynchronizedCharCollectionpublic SynchronizedCharList withAll(CharIterable elements)
withAll in interface MutableCharCollectionwithAll in interface MutableCharListwithAll in class AbstractSynchronizedCharCollectionpublic SynchronizedCharList withoutAll(CharIterable elements)
withoutAll in interface MutableCharCollectionwithoutAll in interface MutableCharListwithoutAll in class AbstractSynchronizedCharCollectionpublic 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 AbstractSynchronizedCharCollectionpublic 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 AbstractSynchronizedCharCollectionpublic <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 AbstractSynchronizedCharCollectionpublic MutableCharList sortThis()
sortThis in interface MutableCharListpublic MutableCharList sortThis(CharComparator comparator)
sortThis in interface MutableCharListpublic <T> MutableCharList sortThisBy(CharToObjectFunction<T> function)
sortThisBy in interface MutableCharListpublic <T> MutableCharList sortThisBy(CharToObjectFunction<T> function, Comparator<? super T> comparator)
sortThisBy in interface MutableCharListpublic MutableCharList shuffleThis()
shuffleThis in interface MutableCharListpublic MutableCharList shuffleThis(Random rnd)
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 LazyCharIterable asLazy()
asLazy in interface CharIterableasLazy in class AbstractSynchronizedCharCollectionpublic MutableCharList asUnmodifiable()
asUnmodifiable in interface MutableCharCollectionasUnmodifiable in interface MutableCharListasUnmodifiable in class AbstractSynchronizedCharCollectionpublic MutableCharList asSynchronized()
asSynchronized in interface MutableCharCollectionasSynchronized in interface MutableCharListasSynchronized in class AbstractSynchronizedCharCollectionpublic ImmutableCharList toImmutable()
toImmutable in interface MutableCharCollectiontoImmutable in interface CharListtoImmutable in interface MutableCharListtoImmutable in class AbstractSynchronizedCharCollectionpublic 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 LazyCharIterable asReversed()
asReversed in interface ReversibleCharIterablepublic void forEachInBoth(CharList other, CharCharProcedure procedure)
forEachInBoth in interface CharListpublic void forEachWithIndex(CharIntProcedure procedure)
forEachWithIndex in interface OrderedCharIterablepublic <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.