@ThreadSafe public final class SynchronizedCharList extends AbstractSynchronizedCharCollection implements com.gs.collections.api.list.primitive.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,
com.gs.collections.api.CharIterable source) |
void |
addAtIndex(int index,
char element) |
com.gs.collections.api.LazyCharIterable |
asLazy() |
com.gs.collections.api.list.primitive.MutableCharList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableCharList |
asUnmodifiable() |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
long |
dotProduct(com.gs.collections.api.list.primitive.CharList list) |
boolean |
equals(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
char |
get(int index) |
char |
getFirst() |
char |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(char value) |
int |
lastIndexOf(char value) |
com.gs.collections.api.list.primitive.MutableCharList |
reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
removeAtIndex(int index) |
com.gs.collections.api.list.primitive.MutableCharList |
reverseThis() |
com.gs.collections.api.list.primitive.MutableCharList |
select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
set(int index,
char element) |
com.gs.collections.api.list.primitive.MutableCharList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
com.gs.collections.api.list.primitive.ImmutableCharList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableCharList |
toReversed() |
SynchronizedCharList |
with(char element) |
SynchronizedCharList |
withAll(com.gs.collections.api.CharIterable elements) |
SynchronizedCharList |
without(char element) |
SynchronizedCharList |
withoutAll(com.gs.collections.api.CharIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, charIterator, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getCharCollection, getLock, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, charIterator, contains, containsAll, containsAll, count, detectIfNone, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic char get(int index)
get in interface com.gs.collections.api.list.primitive.CharListpublic char getFirst()
getFirst in interface com.gs.collections.api.list.primitive.CharListpublic char getLast()
getLast in interface com.gs.collections.api.list.primitive.CharListpublic int indexOf(char value)
indexOf in interface com.gs.collections.api.list.primitive.CharListpublic int lastIndexOf(char value)
lastIndexOf in interface com.gs.collections.api.list.primitive.CharListpublic void addAtIndex(int index,
char element)
addAtIndex in interface com.gs.collections.api.list.primitive.MutableCharListpublic boolean addAllAtIndex(int index,
char... source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableCharListpublic boolean addAllAtIndex(int index,
com.gs.collections.api.CharIterable source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableCharListpublic char removeAtIndex(int index)
removeAtIndex in interface com.gs.collections.api.list.primitive.MutableCharListpublic char set(int index,
char element)
set in interface com.gs.collections.api.list.primitive.MutableCharListpublic SynchronizedCharList with(char element)
with in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwith in interface com.gs.collections.api.list.primitive.MutableCharListwith in class AbstractSynchronizedCharCollectionpublic SynchronizedCharList without(char element)
without in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwithout in interface com.gs.collections.api.list.primitive.MutableCharListwithout in class AbstractSynchronizedCharCollectionpublic SynchronizedCharList withAll(com.gs.collections.api.CharIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwithAll in interface com.gs.collections.api.list.primitive.MutableCharListwithAll in class AbstractSynchronizedCharCollectionpublic SynchronizedCharList withoutAll(com.gs.collections.api.CharIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwithoutAll in interface com.gs.collections.api.list.primitive.MutableCharListwithoutAll in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.MutableCharList select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface com.gs.collections.api.CharIterableselect in interface com.gs.collections.api.collection.primitive.MutableCharCollectionselect in interface com.gs.collections.api.list.primitive.CharListselect in interface com.gs.collections.api.list.primitive.MutableCharListselect in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.MutableCharList reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface com.gs.collections.api.CharIterablereject in interface com.gs.collections.api.collection.primitive.MutableCharCollectionreject in interface com.gs.collections.api.list.primitive.CharListreject in interface com.gs.collections.api.list.primitive.MutableCharListreject in class AbstractSynchronizedCharCollectionpublic <V> com.gs.collections.api.list.MutableList<V> collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.CharIterablecollect in interface com.gs.collections.api.collection.primitive.MutableCharCollectioncollect in interface com.gs.collections.api.list.primitive.CharListcollect in interface com.gs.collections.api.list.primitive.MutableCharListcollect in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.MutableCharList sortThis()
com.gs.collections.api.list.primitive.MutableCharListsortThis in interface com.gs.collections.api.list.primitive.MutableCharListpublic long dotProduct(com.gs.collections.api.list.primitive.CharList list)
dotProduct in interface com.gs.collections.api.list.primitive.CharListpublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.CharListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.CharListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.CharListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.CharListhashCode in class java.lang.Objectpublic com.gs.collections.api.LazyCharIterable asLazy()
asLazy in interface com.gs.collections.api.CharIterableasLazy in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.MutableCharList asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableCharCollectionasUnmodifiable in interface com.gs.collections.api.list.primitive.MutableCharListasUnmodifiable in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.MutableCharList asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableCharCollectionasSynchronized in interface com.gs.collections.api.list.primitive.MutableCharListasSynchronized in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.ImmutableCharList toImmutable()
com.gs.collections.api.list.primitive.MutableCharListtoImmutable in interface com.gs.collections.api.collection.primitive.MutableCharCollectiontoImmutable in interface com.gs.collections.api.list.primitive.CharListtoImmutable in interface com.gs.collections.api.list.primitive.MutableCharListtoImmutable in class AbstractSynchronizedCharCollectionpublic com.gs.collections.api.list.primitive.MutableCharList reverseThis()
reverseThis in interface com.gs.collections.api.list.primitive.MutableCharListpublic com.gs.collections.api.list.primitive.MutableCharList toReversed()
toReversed in interface com.gs.collections.api.list.primitive.MutableCharList