Class AbstractDoubleIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
- All Implemented Interfaces:
DoubleIterable
,PrimitiveIterable
- Direct Known Subclasses:
AbstractDoubleSet
,AbstractMutableDoubleValuesMap
,DoubleArrayList
,DoubleHashBag
public abstract class AbstractDoubleIterable extends Object implements DoubleIterable
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
Constructors Constructor Description AbstractDoubleIterable()
-
Method Summary
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()
String
toString()
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, anySatisfy, averageIfEmpty, chunk, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, sum, summaryStatistics, tap, toArray, toArray
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
AbstractDoubleIterable
public AbstractDoubleIterable()
-
-
Method Details
-
toString
Description copied from interface:PrimitiveIterable
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.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());
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
minIfEmpty
public double minIfEmpty(double defaultValue)- Specified by:
minIfEmpty
in interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)- Specified by:
maxIfEmpty
in interfaceDoubleIterable
-
average
public double average()- Specified by:
average
in interfaceDoubleIterable
-
median
public double median()- Specified by:
median
in interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArray
in interfaceDoubleIterable
-
toSortedList
- Specified by:
toSortedList
in interfaceDoubleIterable
-
asLazy
Description copied from interface:DoubleIterable
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.- Specified by:
asLazy
in interfaceDoubleIterable
-
toList
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleList.- Specified by:
toList
in interfaceDoubleIterable
-
toSet
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSet
in interfaceDoubleIterable
-
toBag
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBag
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)Description copied from interface:DoubleIterable
Returns true if the all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAll
in interfaceDoubleIterable
-
containsAll
Description copied from interface:DoubleIterable
Returns true if the all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAll
in interfaceDoubleIterable
-