DoubleIterable, PrimitiveIterableAbstractDoubleSet, AbstractMutableDoubleValuesMap, DoubleArrayList, DoubleHashBagpublic abstract class AbstractDoubleIterable extends java.lang.Object implements DoubleIterable
| Constructor | Description |
|---|---|
AbstractDoubleIterable() |
| Modifier and Type | Method | Description |
|---|---|---|
LazyDoubleIterable |
asLazy() |
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.
|
double |
average() |
|
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.
|
double |
maxIfEmpty(double defaultValue) |
|
double |
median() |
|
double |
minIfEmpty(double defaultValue) |
|
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.
|
allSatisfy, anySatisfy, averageIfEmpty, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reject, reject, select, select, sum, summaryStatistics, tap, toArrayequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic 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 java.lang.ObjectAbstractCollection.toString()public double minIfEmpty(double defaultValue)
minIfEmpty in interface DoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty 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 LazyDoubleIterable asLazy()
DoubleIterableasLazy in interface DoubleIterablepublic MutableDoubleList toList()
DoubleIterabletoList in interface DoubleIterablepublic MutableDoubleSet toSet()
DoubleIterabletoSet in interface DoubleIterablepublic MutableDoubleBag toBag()
DoubleIterabletoBag in interface DoubleIterablepublic boolean containsAll(double... source)
DoubleIterablecontainsAll in interface DoubleIterablepublic boolean containsAll(DoubleIterable source)
DoubleIterablecontainsAll in interface DoubleIterableCopyright © 2004–2017. All rights reserved.