Class AbstractSynchronizedCharCollection
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection
- All Implemented Interfaces:
Serializable,CharIterable,MutableCharCollection,PrimitiveIterable
- Direct Known Subclasses:
SynchronizedCharBag,SynchronizedCharCollection,SynchronizedCharList,SynchronizedCharSet
public abstract class AbstractSynchronizedCharCollection
extends Object
implements MutableCharCollection, Serializable
This file was automatically generated from template file abstractSynchronizedPrimitiveCollection.stg.
- Since:
- 3.1.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(char newItem) booleanaddAll(char... source) booleanaddAll(CharIterable source) booleanallSatisfy(CharPredicate predicate) booleananySatisfy(CharPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()Must be called in a synchronized block.chunk(int size) voidclear()<V> MutableCollection<V>collect(CharToObjectFunction<? extends V> function) booleancontains(char value) booleancontainsAll(char... source) booleancontainsAll(CharIterable source) booleancontainsAny(char... source) booleancontainsAny(CharIterable source) booleancontainsNone(char... source) booleancontainsNone(CharIterable source) intcount(CharPredicate predicate) chardetectIfNone(CharPredicate predicate, char ifNone) voideach(CharProcedure procedure) <T> TinjectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) charmax()charmaxIfEmpty(char defaultValue) doublemedian()charmin()charminIfEmpty(char defaultValue) booleannoneSatisfy(CharPredicate predicate) booleannotEmpty()longreduce(LongCharToLongFunction accumulator) longreduceIfEmpty(LongCharToLongFunction accumulator, long defaultValue) reject(CharPredicate predicate) booleanremove(char value) booleanremoveAll(char... source) booleanremoveAll(CharIterable source) booleanremoveIf(CharPredicate predicate) booleanretainAll(char... source) booleanretainAll(CharIterable source) select(CharPredicate predicate) intsize()longsum()char[]toArray()char[]toArray(char[] target) toBag()toList()toSet()char[]toString()with(char element) withAll(CharIterable elements) without(char element) withoutAll(CharIterable elements) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.CharIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
newEmpty, tap
-
Method Details
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharCollection
-
select
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceMutableCharCollection
-
reject
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceMutableCharCollection
-
collect
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceMutableCharCollection
-
with
- Specified by:
within interfaceMutableCharCollection
-
without
- Specified by:
withoutin interfaceMutableCharCollection
-
withAll
- Specified by:
withAllin interfaceMutableCharCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableCharCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharCollection
-
toImmutable
- Specified by:
toImmutablein interfaceMutableCharCollection
-
asLazy
- Specified by:
asLazyin interfaceCharIterable
-
contains
public boolean contains(char value) - Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source) - Specified by:
containsAllin interfaceCharIterable
-
containsAll
- Specified by:
containsAllin interfaceCharIterable
-
containsAny
public boolean containsAny(char... source) - Specified by:
containsAnyin interfaceCharIterable
-
containsAny
- Specified by:
containsAnyin interfaceCharIterable
-
containsNone
public boolean containsNone(char... source) - Specified by:
containsNonein interfaceCharIterable
-
containsNone
- Specified by:
containsNonein interfaceCharIterable
-
add
public boolean add(char newItem) - Specified by:
addin interfaceMutableCharCollection
-
addAll
public boolean addAll(char... source) - Specified by:
addAllin interfaceMutableCharCollection
-
addAll
- Specified by:
addAllin interfaceMutableCharCollection
-
remove
public boolean remove(char value) - Specified by:
removein interfaceMutableCharCollection
-
removeIf
- Specified by:
removeIfin interfaceMutableCharCollection
-
removeAll
- Specified by:
removeAllin interfaceMutableCharCollection
-
removeAll
public boolean removeAll(char... source) - Specified by:
removeAllin interfaceMutableCharCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableCharCollection
-
retainAll
public boolean retainAll(char... source) - Specified by:
retainAllin interfaceMutableCharCollection
-
charIterator
Must be called in a synchronized block.- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharCollection
-
each
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceCharIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceCharIterable
-
sum
public long sum()- Specified by:
sumin interfaceCharIterable
-
max
public char max()- Specified by:
maxin interfaceCharIterable
-
min
public char min()- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue) - Specified by:
minIfEmptyin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue) - Specified by:
maxIfEmptyin interfaceCharIterable
-
average
public double average()- Specified by:
averagein interfaceCharIterable
-
median
public double median()- Specified by:
medianin interfaceCharIterable
-
toSortedList
- Specified by:
toSortedListin interfaceCharIterable
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArrayin interfaceCharIterable
-
toArray
public char[] toArray()- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target) - Specified by:
toArrayin interfaceCharIterable
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
- Specified by:
toListin interfaceCharIterable
-
toSet
- Specified by:
toSetin interfaceCharIterable
-
toBag
- Specified by:
toBagin interfaceCharIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceCharIterable
-
reduce
- Specified by:
reducein interfaceCharIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceCharIterable
-
chunk
- Specified by:
chunkin interfaceCharIterable
-