public class SynchronizedDoubleIterable extends Object implements DoubleIterable, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(DoublePredicate predicate) |
boolean |
anySatisfy(DoublePredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyDoubleIterable |
asLazy() |
double |
average() |
<V> RichIterable<V> |
collect(DoubleToObjectFunction<? extends V> function) |
boolean |
contains(double value) |
boolean |
containsAll(double... source) |
boolean |
containsAll(DoubleIterable source) |
int |
count(DoublePredicate predicate) |
double |
detectIfNone(DoublePredicate predicate,
double ifNone) |
DoubleIterator |
doubleIterator()
Must be called in a synchronized block.
|
void |
each(DoubleProcedure procedure) |
void |
forEach(DoubleProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
double |
max() |
double |
maxIfEmpty(double defaultValue) |
double |
median() |
double |
min() |
double |
minIfEmpty(double defaultValue) |
boolean |
noneSatisfy(DoublePredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
static SynchronizedDoubleIterable |
of(DoubleIterable iterable)
This method will take a DoubleIterable and wrap it directly in a SynchronizedDoubleIterable.
|
static SynchronizedDoubleIterable |
of(DoubleIterable iterable,
Object lock)
This method will take a DoubleIterable and wrap it directly in a SynchronizedDoubleIterable.
|
DoubleIterable |
reject(DoublePredicate predicate) |
DoubleIterable |
select(DoublePredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
double[] |
toArray() |
MutableDoubleBag |
toBag() |
MutableDoubleList |
toList() |
MutableDoubleSet |
toSet() |
double[] |
toSortedArray() |
MutableDoubleList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
public static SynchronizedDoubleIterable of(DoubleIterable iterable)
public static SynchronizedDoubleIterable of(DoubleIterable iterable, Object lock)
public double[] toArray()
toArray in interface DoubleIterablepublic boolean contains(double value)
contains in interface DoubleIterablepublic boolean containsAll(double... source)
containsAll in interface DoubleIterablepublic boolean containsAll(DoubleIterable source)
containsAll in interface DoubleIterablepublic void forEach(DoubleProcedure procedure)
forEach in interface DoubleIterablepublic void each(DoubleProcedure procedure)
each in interface DoubleIterablepublic DoubleIterable select(DoublePredicate predicate)
select in interface DoubleIterablepublic DoubleIterable reject(DoublePredicate predicate)
reject in interface DoubleIterablepublic <V> RichIterable<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface DoubleIterablepublic double detectIfNone(DoublePredicate predicate, double ifNone)
detectIfNone in interface DoubleIterablepublic int count(DoublePredicate predicate)
count in interface DoubleIterablepublic boolean anySatisfy(DoublePredicate predicate)
anySatisfy in interface DoubleIterablepublic boolean allSatisfy(DoublePredicate predicate)
allSatisfy in interface DoubleIterablepublic boolean noneSatisfy(DoublePredicate predicate)
noneSatisfy in interface DoubleIterablepublic MutableDoubleList toList()
toList in interface DoubleIterablepublic MutableDoubleSet toSet()
toSet in interface DoubleIterablepublic MutableDoubleBag toBag()
toBag in interface DoubleIterablepublic LazyDoubleIterable asLazy()
asLazy in interface DoubleIterablepublic double sum()
sum in interface DoubleIterablepublic double max()
max in interface DoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty in interface DoubleIterablepublic double min()
min in interface DoubleIterablepublic double minIfEmpty(double defaultValue)
minIfEmpty in interface DoubleIterablepublic double average()
average in interface DoubleIterablepublic double median()
median in interface DoubleIterablepublic double[] toSortedArray()
toSortedArray in interface DoubleIterablepublic MutableDoubleList toSortedList()
toSortedList in interface DoubleIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface DoubleIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic DoubleIterator doubleIterator()
doubleIterator in interface DoubleIterableCopyright © 2004–2016. All rights reserved.