Class SynchronizedFloatIterable
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.SynchronizedFloatIterable
-
- All Implemented Interfaces:
Serializable,FloatIterable,PrimitiveIterable
public class SynchronizedFloatIterable extends Object implements FloatIterable, Serializable
A synchronized view of a FloatIterable. This file was automatically generated from template file synchronizedPrimitiveIterable.stg.- Since:
- 5.0.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(FloatPredicate predicate)booleananySatisfy(FloatPredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyFloatIterableasLazy()doubleaverage()RichIterable<FloatIterable>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)FloatIteratorfloatIterator()Must be called in a synchronized block.<T> TinjectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)booleanisEmpty()StringmakeString()StringmakeString(String separator)StringmakeString(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)FloatIterablereject(FloatPredicate predicate)FloatIterableselect(FloatPredicate predicate)intsize()doublesum()float[]toArray()float[]toArray(float[] target)MutableFloatBagtoBag()MutableFloatListtoList()MutableFloatSettoSet()float[]toSortedArray()MutableFloatListtoSortedList()StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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 Detail
-
of
public static SynchronizedFloatIterable of(FloatIterable iterable)
This method will take a FloatIterable and wrap it directly in a SynchronizedFloatIterable.
-
of
public static SynchronizedFloatIterable of(FloatIterable iterable, Object lock)
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
public boolean containsAll(FloatIterable source)
- Specified by:
containsAllin interfaceFloatIterable
-
containsAny
public boolean containsAny(float... source)
- Specified by:
containsAnyin interfaceFloatIterable
-
containsAny
public boolean containsAny(FloatIterable source)
- Specified by:
containsAnyin interfaceFloatIterable
-
containsNone
public boolean containsNone(float... source)
- Specified by:
containsNonein interfaceFloatIterable
-
containsNone
public boolean containsNone(FloatIterable source)
- Specified by:
containsNonein interfaceFloatIterable
-
each
public void each(FloatProcedure procedure)
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
select
public FloatIterable select(FloatPredicate predicate)
- Specified by:
selectin interfaceFloatIterable
-
reject
public FloatIterable reject(FloatPredicate predicate)
- Specified by:
rejectin interfaceFloatIterable
-
collect
public <V> RichIterable<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceFloatIterable
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNonein interfaceFloatIterable
-
count
public int count(FloatPredicate predicate)
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfyin interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toListin interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSetin interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
public LazyFloatIterable 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
public MutableFloatList 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
public double reduce(DoubleFloatToDoubleFunction accumulator)
- Specified by:
reducein interfaceFloatIterable
-
reduceIfEmpty
public double reduceIfEmpty(DoubleFloatToDoubleFunction accumulator, double defaultValue)
- Specified by:
reduceIfEmptyin interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunkin interfaceFloatIterable
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
floatIterator
public FloatIterator floatIterator()
Must be called in a synchronized block.- Specified by:
floatIteratorin interfaceFloatIterable
-
-