Class SynchronizedDoubleIterable
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.SynchronizedDoubleIterable
-
- All Implemented Interfaces:
Serializable,DoubleIterable,PrimitiveIterable
public class SynchronizedDoubleIterable extends Object implements DoubleIterable, Serializable
A synchronized view of a DoubleIterable. 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(DoublePredicate predicate)booleananySatisfy(DoublePredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyDoubleIterableasLazy()doubleaverage()RichIterable<DoubleIterable>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)DoubleIteratordoubleIterator()Must be called in a synchronized block.voideach(DoubleProcedure procedure)<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)booleanisEmpty()StringmakeString()StringmakeString(String separator)StringmakeString(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)DoubleIterablereject(DoublePredicate predicate)DoubleIterableselect(DoublePredicate predicate)intsize()doublesum()double[]toArray()double[]toArray(double[] target)MutableDoubleBagtoBag()MutableDoubleListtoList()MutableDoubleSettoSet()double[]toSortedArray()MutableDoubleListtoSortedList()StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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 Detail
-
of
public static SynchronizedDoubleIterable of(DoubleIterable iterable)
This method will take a DoubleIterable and wrap it directly in a SynchronizedDoubleIterable.
-
of
public static SynchronizedDoubleIterable of(DoubleIterable iterable, Object lock)
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
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
containsAny
public boolean containsAny(double... source)
- Specified by:
containsAnyin interfaceDoubleIterable
-
containsAny
public boolean containsAny(DoubleIterable source)
- Specified by:
containsAnyin interfaceDoubleIterable
-
containsNone
public boolean containsNone(double... source)
- Specified by:
containsNonein interfaceDoubleIterable
-
containsNone
public boolean containsNone(DoubleIterable source)
- Specified by:
containsNonein interfaceDoubleIterable
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
select
public DoubleIterable select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable
-
reject
public DoubleIterable reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable
-
collect
public <V> RichIterable<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNonein interfaceDoubleIterable
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable 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
public MutableDoubleList 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
public double reduce(DoubleDoubleToDoubleFunction accumulator)
- Specified by:
reducein interfaceDoubleIterable
-
reduceIfEmpty
public double reduceIfEmpty(DoubleDoubleToDoubleFunction accumulator, double defaultValue)
- Specified by:
reduceIfEmptyin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
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
-
doubleIterator
public DoubleIterator doubleIterator()
Must be called in a synchronized block.- Specified by:
doubleIteratorin interfaceDoubleIterable
-
-