CharIterable, MutableCharCollection, CharList, MutableCharList, OrderedCharIterable, ReversibleCharIterable, PrimitiveIterablepublic 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| Constructor | Description |
|---|---|
SynchronizedCharList(MutableCharList list) |
|
SynchronizedCharList(MutableCharList list,
java.lang.Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAllAtIndex(int index,
char... source) |
|
boolean |
addAllAtIndex(int index,
CharIterable source) |
|
void |
addAtIndex(int index,
char element) |
|
LazyCharIterable |
asLazy() |
Returns a LazyCharIterable adapter wrapping the source CharIterable.
|
LazyCharIterable |
asReversed() |
|
MutableCharList |
asSynchronized() |
|
MutableCharList |
asUnmodifiable() |
|
int |
binarySearch(char value) |
|
<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.
|
<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 java.util.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(java.lang.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 |
injectIntoWithIndex(T injectedValue,
ObjectCharIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(char value) |
|
MutableCharList |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for 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.
|
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) |
|
<T> MutableList<CharObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns a
MutableList formed from this MutableCharList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<CharCharPair> |
zipChar(CharIterable iterable) |
Returns a
MutableList formed from this MutableCharList and another CharList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, charIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedCharList(MutableCharList list)
public SynchronizedCharList(MutableCharList list, java.lang.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)
CharIterableselect in interface CharIterableselect in interface CharListselect in interface MutableCharCollectionselect in interface MutableCharListselect in interface OrderedCharIterableselect in interface ReversibleCharIterableselect in class AbstractSynchronizedCharCollectionpublic MutableCharList reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface CharListreject in interface MutableCharCollectionreject in interface MutableCharListreject in interface OrderedCharIterablereject in interface ReversibleCharIterablereject in class AbstractSynchronizedCharCollectionpublic <V> MutableList<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface CharListcollect in interface MutableCharCollectioncollect in interface MutableCharListcollect in interface OrderedCharIterablecollect in interface ReversibleCharIterablecollect in class AbstractSynchronizedCharCollectionpublic MutableCharList sortThis()
MutableCharListsortThis in interface MutableCharListpublic int binarySearch(char value)
binarySearch in interface CharListpublic long dotProduct(CharList list)
dotProduct in interface CharListpublic boolean equals(java.lang.Object otherList)
CharListList.equals(Object).public int hashCode()
CharListList.hashCode().public LazyCharIterable asLazy()
CharIterableasLazy 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 CharListtoImmutable in interface MutableCharCollectiontoImmutable 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 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 MutableCharListList.subList(int fromIndex, int toIndex)public MutableList<CharCharPair> zipChar(CharIterable iterable)
MutableCharListMutableList 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.zipChar in interface CharListzipChar in interface MutableCharListpublic <T> MutableList<CharObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableCharListMutableList 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.zip in interface CharListzip in interface MutableCharListpublic <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex in interface CharListcollectWithIndex in interface MutableCharListcollectWithIndex in interface OrderedCharIterablecollectWithIndex in interface ReversibleCharIterablepublic <V,R extends java.util.Collection<V>> R collectWithIndex(CharIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedCharIterableCopyright © 2004–2018. All rights reserved.