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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLazy()Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.doubleaverage()doublemaxIfEmpty(double defaultValue) doublemedian()doubleminIfEmpty(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, waitMethods 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, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, sum, summaryStatistics, tap, toArray, toArray, toSortedList, toSortedListBy, toSortedListByMethods 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:PrimitiveIterableReturns 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:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject- Returns:
- a string representation of this PrimitiveIterable
- See Also:
-
minIfEmpty
public double minIfEmpty(double defaultValue) - Specified by:
minIfEmptyin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue) - Specified by:
maxIfEmptyin interfaceDoubleIterable
-
average
public double average()- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()- Specified by:
medianin interfaceDoubleIterable
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
- Specified by:
toSortedListin interfaceDoubleIterable
-
asLazy
Description copied from interface:DoubleIterableReturns a LazyDoubleIterable adapter wrapping the source DoubleIterable.- Specified by:
asLazyin interfaceDoubleIterable
-
toList
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleList.- Specified by:
toListin interfaceDoubleIterable
-
toSet
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSetin interfaceDoubleIterable
-
toBag
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBagin interfaceDoubleIterable
-