DoubleIterable
, PrimitiveIterable
AbstractDoubleSet
, AbstractMutableDoubleValuesMap
, DoubleArrayList
, DoubleHashBag
public 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, toArray
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
public 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 PrimitiveIterable
toString
in class java.lang.Object
AbstractCollection.toString()
public double minIfEmpty(double defaultValue)
minIfEmpty
in interface DoubleIterable
public double maxIfEmpty(double defaultValue)
maxIfEmpty
in interface DoubleIterable
public double average()
average
in interface DoubleIterable
public double median()
median
in interface DoubleIterable
public double[] toSortedArray()
toSortedArray
in interface DoubleIterable
public MutableDoubleList toSortedList()
toSortedList
in interface DoubleIterable
public LazyDoubleIterable asLazy()
DoubleIterable
asLazy
in interface DoubleIterable
public MutableDoubleList toList()
DoubleIterable
toList
in interface DoubleIterable
public MutableDoubleSet toSet()
DoubleIterable
toSet
in interface DoubleIterable
public MutableDoubleBag toBag()
DoubleIterable
toBag
in interface DoubleIterable
public boolean containsAll(double... source)
DoubleIterable
containsAll
in interface DoubleIterable
public boolean containsAll(DoubleIterable source)
DoubleIterable
containsAll
in interface DoubleIterable
Copyright © 2004–2017. All rights reserved.