CharIterable
, MutableCharCollection
, CharList
, MutableCharList
, OrderedCharIterable
, ReversibleCharIterable
, PrimitiveIterable
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 FormConstructor | 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, toString
allSatisfy, 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, toSortedList
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedCharList(MutableCharList list)
public SynchronizedCharList(MutableCharList list, java.lang.Object newLock)
public char getFirst()
getFirst
in interface OrderedCharIterable
public char getLast()
getLast
in interface ReversibleCharIterable
public int indexOf(char value)
indexOf
in interface OrderedCharIterable
public int lastIndexOf(char value)
lastIndexOf
in interface CharList
public void addAtIndex(int index, char element)
addAtIndex
in interface MutableCharList
public boolean addAllAtIndex(int index, char... source)
addAllAtIndex
in interface MutableCharList
public boolean addAllAtIndex(int index, CharIterable source)
addAllAtIndex
in interface MutableCharList
public char removeAtIndex(int index)
removeAtIndex
in interface MutableCharList
public char set(int index, char element)
set
in interface MutableCharList
public SynchronizedCharList with(char element)
with
in interface MutableCharCollection
with
in interface MutableCharList
with
in class AbstractSynchronizedCharCollection
public SynchronizedCharList without(char element)
without
in interface MutableCharCollection
without
in interface MutableCharList
without
in class AbstractSynchronizedCharCollection
public SynchronizedCharList withAll(CharIterable elements)
withAll
in interface MutableCharCollection
withAll
in interface MutableCharList
withAll
in class AbstractSynchronizedCharCollection
public SynchronizedCharList withoutAll(CharIterable elements)
withoutAll
in interface MutableCharCollection
withoutAll
in interface MutableCharList
withoutAll
in class AbstractSynchronizedCharCollection
public MutableCharList select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharList
select
in interface MutableCharCollection
select
in interface MutableCharList
select
in interface OrderedCharIterable
select
in interface ReversibleCharIterable
select
in class AbstractSynchronizedCharCollection
public MutableCharList reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharList
reject
in interface MutableCharCollection
reject
in interface MutableCharList
reject
in interface OrderedCharIterable
reject
in interface ReversibleCharIterable
reject
in class AbstractSynchronizedCharCollection
public <V> MutableList<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharList
collect
in interface MutableCharCollection
collect
in interface MutableCharList
collect
in interface OrderedCharIterable
collect
in interface ReversibleCharIterable
collect
in class AbstractSynchronizedCharCollection
public MutableCharList sortThis()
MutableCharList
sortThis
in interface MutableCharList
public int binarySearch(char value)
binarySearch
in interface CharList
public long dotProduct(CharList list)
dotProduct
in interface CharList
public boolean equals(java.lang.Object otherList)
CharList
List.equals(Object)
.public int hashCode()
CharList
List.hashCode()
.public LazyCharIterable asLazy()
CharIterable
asLazy
in interface CharIterable
asLazy
in class AbstractSynchronizedCharCollection
public MutableCharList asUnmodifiable()
asUnmodifiable
in interface MutableCharCollection
asUnmodifiable
in interface MutableCharList
asUnmodifiable
in class AbstractSynchronizedCharCollection
public MutableCharList asSynchronized()
asSynchronized
in interface MutableCharCollection
asSynchronized
in interface MutableCharList
asSynchronized
in class AbstractSynchronizedCharCollection
public ImmutableCharList toImmutable()
MutableCharList
toImmutable
in interface CharList
toImmutable
in interface MutableCharCollection
toImmutable
in interface MutableCharList
toImmutable
in class AbstractSynchronizedCharCollection
public MutableCharList reverseThis()
reverseThis
in interface MutableCharList
public MutableCharList toReversed()
toReversed
in interface CharList
toReversed
in interface MutableCharList
toReversed
in interface ReversibleCharIterable
public LazyCharIterable asReversed()
asReversed
in interface ReversibleCharIterable
public void forEachWithIndex(CharIntProcedure procedure)
forEachWithIndex
in interface OrderedCharIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedCharIterable
injectIntoWithIndex
in interface ReversibleCharIterable
public MutableCharList distinct()
distinct
in interface CharList
distinct
in interface MutableCharList
distinct
in interface ReversibleCharIterable
public MutableCharList subList(int fromIndex, int toIndex)
subList
in interface CharList
subList
in interface MutableCharList
List.subList(int fromIndex, int toIndex)
public MutableList<CharCharPair> zipChar(CharIterable iterable)
MutableCharList
MutableList
formed from this MutableCharList
and another CharList
by
combining corresponding elements in pairs. If one of the two CharList
s is longer than the other, its
remaining elements are ignored.zipChar
in interface CharList
zipChar
in interface MutableCharList
public <T> MutableList<CharObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableCharList
MutableList
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 CharList
zip
in interface MutableCharList
public <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex
in interface CharList
collectWithIndex
in interface MutableCharList
collectWithIndex
in interface OrderedCharIterable
collectWithIndex
in interface ReversibleCharIterable
public <V,R extends java.util.Collection<V>> R collectWithIndex(CharIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedCharIterable
Copyright © 2004–2018. All rights reserved.