DoubleIterable, LazyDoubleIterable, PrimitiveIterablepublic class ReverseDoubleIterable extends AbstractLazyDoubleIterable
ReverseIterable| Constructor | Description |
|---|---|
ReverseDoubleIterable(DoubleList newAdapted) |
| Modifier and Type | Method | Description |
|---|---|---|
static ReverseDoubleIterable |
adapt(DoubleList doubleList) |
|
LazyDoubleIterable |
asLazy() |
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.
|
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.
|
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.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
double |
max() |
|
double |
maxIfEmpty(double defaultValue) |
|
double |
median() |
|
double |
min() |
|
double |
minIfEmpty(double defaultValue) |
|
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() |
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic ReverseDoubleIterable(DoubleList newAdapted)
public static ReverseDoubleIterable adapt(DoubleList doubleList)
public DoubleIterator doubleIterator()
DoubleIterablepublic void each(DoubleProcedure procedure)
DoubleIterablepublic 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 double[] toArray()
DoubleIterabletoArray in interface DoubleIterabletoArray 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 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 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 LazyDoubleIterable asLazy()
DoubleIterableasLazy in interface DoubleIterableasLazy in class AbstractLazyDoubleIterableCopyright © 2004–2020. All rights reserved.