@ThreadSafe public final class SynchronizedCharList extends AbstractSynchronizedCharCollection implements MutableCharList
MutableCharList. It is imperative that the user manually synchronize on the collection when iterating over it using the
CharIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableCharList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| 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() |
<V> MutableList<V> |
collect(CharToObjectFunction<? extends V> function) |
long |
dotProduct(CharList list) |
boolean |
equals(Object otherList)
Follows the same general contract as
List.equals(Object). |
void |
forEachWithIndex(CharIntProcedure procedure) |
char |
get(int index) |
char |
getFirst() |
char |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(char value) |
<T> T |
injectInto(T injectedValue,
ObjectCharToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectCharIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(char value) |
MutableCharList |
reject(CharPredicate predicate) |
char |
removeAtIndex(int index) |
MutableCharList |
reverseThis() |
MutableCharList |
select(CharPredicate 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) |
ImmutableCharList |
toImmutable()
Returns an immutable copy of this list.
|
MutableCharList |
toReversed() |
SynchronizedCharList |
with(char element) |
SynchronizedCharList |
withAll(CharIterable elements) |
SynchronizedCharList |
without(char element) |
SynchronizedCharList |
withoutAll(CharIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, charIterator, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, charIterator, contains, containsAll, containsAll, count, detectIfNone, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic char getFirst()
getFirst in interface ReversibleCharIterablepublic char getLast()
getLast in interface ReversibleCharIterablepublic int indexOf(char value)
indexOf in interface ReversibleCharIterablepublic 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 ReversibleCharIterableselect in class AbstractSynchronizedCharCollectionpublic MutableCharList reject(CharPredicate predicate)
reject in interface CharIterablereject in interface MutableCharCollectionreject in interface CharListreject in interface MutableCharListreject 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 ReversibleCharIterablecollect in class AbstractSynchronizedCharCollectionpublic MutableCharList sortThis()
MutableCharListsortThis in interface MutableCharListpublic long dotProduct(CharList list)
dotProduct in interface CharListpublic boolean equals(Object otherList)
CharListList.equals(Object).public int hashCode()
CharListList.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()
MutableCharListtoImmutable in interface MutableCharCollectiontoImmutable in interface CharListtoImmutable in interface MutableCharListtoImmutable in class AbstractSynchronizedCharCollectionpublic 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 forEachWithIndex(CharIntProcedure procedure)
forEachWithIndex in interface ReversibleCharIterablepublic <T> T injectInto(T injectedValue,
ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface CharIterableinjectInto in class AbstractSynchronizedCharCollectionpublic <T> T injectIntoWithIndex(T injectedValue,
ObjectCharIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface ReversibleCharIterablepublic MutableCharList subList(int fromIndex, int toIndex)
subList in interface CharListsubList in interface MutableCharListList#subList(int fromIndex, int toIndex)}Copyright © 2004–2017. All rights reserved.