Class AbstractDoubleIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
- All Implemented Interfaces:
DoubleIterable
,PrimitiveIterable
- Direct Known Subclasses:
AbstractDoubleSet
,AbstractMutableDoubleValuesMap
,DoubleArrayList
,DoubleHashBag
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasLazy()
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.double
average()
double
maxIfEmpty
(double defaultValue) double
median()
double
minIfEmpty
(double defaultValue) toBag()
Converts the DoubleIterable to a new MutableDoubleBag.toList()
Converts the DoubleIterable to a new MutableDoubleList.toSet()
Converts the DoubleIterable to a new MutableDoubleSet.double[]
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, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, sum, summaryStatistics, tap, toArray, toArray, toSortedList, toSortedListBy, toSortedListBy
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:
-
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
-