Class SynchronizedFloatIterable
java.lang.Object
org.eclipse.collections.impl.primitive.SynchronizedFloatIterable
- All Implemented Interfaces:
Serializable,FloatIterable,PrimitiveIterable
A synchronized view of a FloatIterable.
This file was automatically generated from template file synchronizedPrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(FloatPredicate predicate) booleananySatisfy(FloatPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) <V> RichIterable<V>collect(FloatToObjectFunction<? extends V> function) booleancontains(float value) booleancontainsAll(float... source) booleancontainsAll(FloatIterable source) booleancontainsAny(float... source) booleancontainsAny(FloatIterable source) booleancontainsNone(float... source) booleancontainsNone(FloatIterable source) intcount(FloatPredicate predicate) floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) Must be called in a synchronized block.<T> TinjectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) floatmax()floatmaxIfEmpty(float defaultValue) doublemedian()floatmin()floatminIfEmpty(float defaultValue) booleannoneSatisfy(FloatPredicate predicate) booleannotEmpty()static SynchronizedFloatIterableof(FloatIterable iterable) This method will take a FloatIterable and wrap it directly in a SynchronizedFloatIterable.static SynchronizedFloatIterableof(FloatIterable iterable, Object lock) This method will take a FloatIterable and wrap it directly in a SynchronizedFloatIterable.doublereduce(DoubleFloatToDoubleFunction accumulator) doublereduceIfEmpty(DoubleFloatToDoubleFunction accumulator, double defaultValue) reject(FloatPredicate predicate) select(FloatPredicate predicate) intsize()doublesum()float[]toArray()float[]toArray(float[] target) toBag()toList()toSet()float[]toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.FloatIterable
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 FloatIterable and wrap it directly in a SynchronizedFloatIterable. -
of
This method will take a FloatIterable and wrap it directly in a SynchronizedFloatIterable. Additionally, a developer specifies which lock to use with the collection. -
toArray
public float[] toArray()- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] target) - Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value) - Specified by:
containsin interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source) - Specified by:
containsAllin interfaceFloatIterable
-
containsAll
- Specified by:
containsAllin interfaceFloatIterable
-
containsAny
public boolean containsAny(float... source) - Specified by:
containsAnyin interfaceFloatIterable
-
containsAny
- Specified by:
containsAnyin interfaceFloatIterable
-
containsNone
public boolean containsNone(float... source) - Specified by:
containsNonein interfaceFloatIterable
-
containsNone
- Specified by:
containsNonein interfaceFloatIterable
-
each
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceFloatIterable
-
reject
- Specified by:
rejectin interfaceFloatIterable
-
collect
- Specified by:
collectin interfaceFloatIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceFloatIterable
-
count
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceFloatIterable
-
toList
- Specified by:
toListin interfaceFloatIterable
-
toSet
- Specified by:
toSetin interfaceFloatIterable
-
toBag
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
- Specified by:
asLazyin interfaceFloatIterable
-
sum
public double sum()- Specified by:
sumin interfaceFloatIterable
-
max
public float max()- Specified by:
maxin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue) - Specified by:
maxIfEmptyin interfaceFloatIterable
-
min
public float min()- Specified by:
minin interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue) - Specified by:
minIfEmptyin interfaceFloatIterable
-
average
public double average()- Specified by:
averagein interfaceFloatIterable
-
median
public double median()- Specified by:
medianin interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()- Specified by:
toSortedArrayin interfaceFloatIterable
-
toSortedList
- Specified by:
toSortedListin interfaceFloatIterable
-
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, ObjectFloatToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceFloatIterable
-
reduce
- Specified by:
reducein interfaceFloatIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceFloatIterable
-
chunk
- Specified by:
chunkin interfaceFloatIterable
-
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
-
floatIterator
Must be called in a synchronized block.- Specified by:
floatIteratorin interfaceFloatIterable
-