DoubleIterable, LazyDoubleIterable, PrimitiveIterablepublic class LazyDoubleIterableAdapter extends AbstractLazyDoubleIterable
| Constructor | Description |
|---|---|
LazyDoubleIterableAdapter(DoubleIterable delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(DoublePredicate predicate) |
Returns true if all of the elements in the DoubleIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(DoublePredicate predicate) |
Returns true if any of the elements in the DoubleIterable return true for the
specified predicate, otherwise returns false.
|
void |
appendString(java.lang.Appendable appendable) |
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String separator) |
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Prints a string representation of this collection onto the given
Appendable. |
double |
average() |
|
boolean |
contains(double value) |
Returns true if the value is contained in the DoubleIterable, and false if it is not.
|
boolean |
containsAll(double... source) |
Returns true if the all of the values specified in the source array are contained
in the DoubleIterable, and false if they are not.
|
boolean |
containsAll(DoubleIterable source) |
Returns true if the all of the values specified in the source DoubleIterable are contained
in the DoubleIterable, and false if they are not.
|
int |
count(DoublePredicate predicate) |
Returns a count of the number of elements in the DoubleIterable that return true for the
specified predicate.
|
double |
detectIfNone(DoublePredicate predicate,
double ifNone) |
|
DoubleIterator |
doubleIterator() |
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an
imperative style.
|
void |
each(DoubleProcedure procedure) |
A synonym for forEach.
|
<T> T |
injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
java.lang.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). |
java.lang.String |
makeString(java.lang.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). |
java.lang.String |
makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Returns a string representation of this collection with the elements separated by the specified
separator and enclosed between the start and end strings.
|
double |
max() |
|
double |
maxIfEmpty(double defaultValue) |
|
double |
median() |
|
double |
min() |
|
double |
minIfEmpty(double defaultValue) |
|
boolean |
noneSatisfy(DoublePredicate predicate) |
Returns true if none of the elements in the DoubleIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
double |
sum() |
|
double[] |
toArray() |
Converts the DoubleIterable to a primitive double array.
|
MutableDoubleBag |
toBag() |
Converts the DoubleIterable to a new MutableDoubleBag.
|
MutableDoubleList |
toList() |
Converts the DoubleIterable to a new MutableDoubleList.
|
MutableDoubleSet |
toSet() |
Converts the DoubleIterable to a new MutableDoubleSet.
|
double[] |
toSortedArray() |
|
MutableDoubleList |
toSortedList() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, reject, select, tapaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic LazyDoubleIterableAdapter(DoubleIterable delegate)
public DoubleIterator doubleIterator()
DoubleIterablepublic void each(DoubleProcedure procedure)
DoubleIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyDoubleIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyDoubleIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyDoubleIterablepublic int count(DoublePredicate predicate)
DoubleIterablecount in interface DoubleIterablecount in class AbstractLazyDoubleIterablepublic boolean anySatisfy(DoublePredicate predicate)
DoubleIterableanySatisfy in interface DoubleIterableanySatisfy in class AbstractLazyDoubleIterablepublic boolean allSatisfy(DoublePredicate predicate)
DoubleIterableallSatisfy in interface DoubleIterableallSatisfy in class AbstractLazyDoubleIterablepublic boolean noneSatisfy(DoublePredicate predicate)
DoubleIterablenoneSatisfy in interface DoubleIterablenoneSatisfy in class AbstractLazyDoubleIterablepublic double detectIfNone(DoublePredicate predicate, double ifNone)
detectIfNone in interface DoubleIterabledetectIfNone in class AbstractLazyDoubleIterablepublic double sum()
sum in interface DoubleIterablesum in class AbstractLazyDoubleIterablepublic double max()
max in interface DoubleIterablemax in class AbstractLazyDoubleIterablepublic double min()
min in interface DoubleIterablemin in class AbstractLazyDoubleIterablepublic double minIfEmpty(double defaultValue)
minIfEmpty in interface DoubleIterableminIfEmpty in class AbstractLazyDoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty in interface DoubleIterablemaxIfEmpty in class AbstractLazyDoubleIterablepublic double average()
average in interface DoubleIterableaverage in class AbstractLazyDoubleIterablepublic double median()
median in interface DoubleIterablemedian in class AbstractLazyDoubleIterablepublic double[] toSortedArray()
toSortedArray in interface DoubleIterabletoSortedArray in class AbstractLazyDoubleIterablepublic MutableDoubleList toSortedList()
toSortedList in interface DoubleIterabletoSortedList in class AbstractLazyDoubleIterablepublic double[] toArray()
DoubleIterabletoArray in interface DoubleIterabletoArray in class AbstractLazyDoubleIterablepublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface PrimitiveIterabletoString in class AbstractLazyDoubleIterableAbstractCollection.toString()public java.lang.String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablemakeString in class AbstractLazyDoubleIterablepublic java.lang.String makeString(java.lang.String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablemakeString in class AbstractLazyDoubleIterablepublic java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterablemakeString in interface PrimitiveIterablemakeString in class AbstractLazyDoubleIterablepublic void appendString(java.lang.Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterableappendString in class AbstractLazyDoubleIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterableappendString in class AbstractLazyDoubleIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterableappendString in class AbstractLazyDoubleIterablepublic boolean contains(double value)
DoubleIterablecontains in interface DoubleIterablecontains in class AbstractLazyDoubleIterablepublic boolean containsAll(double... source)
DoubleIterablecontainsAll in interface DoubleIterablecontainsAll in class AbstractLazyDoubleIterablepublic boolean containsAll(DoubleIterable source)
DoubleIterablecontainsAll in interface DoubleIterablecontainsAll in class AbstractLazyDoubleIterablepublic MutableDoubleList toList()
DoubleIterabletoList in interface DoubleIterabletoList in class AbstractLazyDoubleIterablepublic MutableDoubleSet toSet()
DoubleIterabletoSet in interface DoubleIterabletoSet in class AbstractLazyDoubleIterablepublic MutableDoubleBag toBag()
DoubleIterabletoBag in interface DoubleIterabletoBag in class AbstractLazyDoubleIterablepublic <T> T injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface DoubleIterableinjectInto in class AbstractLazyDoubleIterableCopyright © 2004–2020. All rights reserved.