Class SynchronizedCharIterable
java.lang.Object
org.eclipse.collections.impl.primitive.SynchronizedCharIterable
- All Implemented Interfaces:
Serializable,CharIterable,PrimitiveIterable
A synchronized view of a CharIterable.
This file was automatically generated from template file synchronizedPrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(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) <V> RichIterable<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()static SynchronizedCharIterableof(CharIterable iterable) This method will take a CharIterable and wrap it directly in a SynchronizedCharIterable.static SynchronizedCharIterableof(CharIterable iterable, Object lock) This method will take a CharIterable and wrap it directly in a SynchronizedCharIterable.longreduce(LongCharToLongFunction accumulator) longreduceIfEmpty(LongCharToLongFunction accumulator, long defaultValue) reject(CharPredicate predicate) select(CharPredicate predicate) intsize()longsum()char[]toArray()char[]toArray(char[] target) toBag()toList()toSet()char[]toString()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, tap, toSortedList, toSortedListBy, toSortedListBy
-
Method Details
-
of
This method will take a CharIterable and wrap it directly in a SynchronizedCharIterable. -
of
This method will take a CharIterable and wrap it directly in a SynchronizedCharIterable. Additionally, a developer specifies which lock to use with the collection. -
toArray
public char[] toArray()- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target) - Specified by:
toArrayin 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
-
each
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceCharIterable
-
reject
- Specified by:
rejectin interfaceCharIterable
-
collect
- Specified by:
collectin interfaceCharIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceCharIterable
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceCharIterable
-
toList
- Specified by:
toListin interfaceCharIterable
-
toSet
- Specified by:
toSetin interfaceCharIterable
-
toBag
- Specified by:
toBagin interfaceCharIterable
-
asLazy
- Specified by:
asLazyin interfaceCharIterable
-
sum
public long sum()- Specified by:
sumin interfaceCharIterable
-
max
public char max()- Specified by:
maxin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue) - Specified by:
maxIfEmptyin interfaceCharIterable
-
min
public char min()- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue) - Specified by:
minIfEmptyin interfaceCharIterable
-
average
public double average()- Specified by:
averagein interfaceCharIterable
-
median
public double median()- Specified by:
medianin interfaceCharIterable
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArrayin interfaceCharIterable
-
toSortedList
- Specified by:
toSortedListin interfaceCharIterable
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
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
-
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
-
charIterator
Must be called in a synchronized block.- Specified by:
charIteratorin interfaceCharIterable
-