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