Class ReverseDoubleIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
org.eclipse.collections.impl.lazy.primitive.ReverseDoubleIterable
- All Implemented Interfaces:
DoubleIterable,LazyDoubleIterable,PrimitiveIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReverseDoubleIterableadapt(DoubleList doubleList) asLazy()Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.doubleaverage()booleancontains(double value) Returns true if the value is contained in the DoubleIterable, and false if it is not.booleancontainsAll(double... source) Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.booleancontainsAll(DoubleIterable source) Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.voideach(DoubleProcedure procedure) A synonym for forEach.booleanisEmpty()Returns true if this iterable has zero items.doublemax()doublemaxIfEmpty(double defaultValue) doublemedian()doublemin()doubleminIfEmpty(double defaultValue) booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.doublesum()double[]toArray()Converts the DoubleIterable to a primitive double array.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[]Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.DoubleIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
Constructor Details
-
ReverseDoubleIterable
-
-
Method Details
-
adapt
-
doubleIterator
Description copied from interface:DoubleIterableReturns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. -
each
Description copied from interface:DoubleIterableA synonym for forEach.- Since:
- 7.0.
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable- Overrides:
sumin classAbstractLazyDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable- Overrides:
maxin classAbstractLazyDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable- Overrides:
minin classAbstractLazyDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue) - Specified by:
minIfEmptyin interfaceDoubleIterable- Overrides:
minIfEmptyin classAbstractLazyDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue) - Specified by:
maxIfEmptyin interfaceDoubleIterable- Overrides:
maxIfEmptyin classAbstractLazyDoubleIterable
-
average
public double average()- Specified by:
averagein interfaceDoubleIterable- Overrides:
averagein classAbstractLazyDoubleIterable
-
median
public double median()- Specified by:
medianin interfaceDoubleIterable- Overrides:
medianin classAbstractLazyDoubleIterable
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArrayin interfaceDoubleIterable- Overrides:
toSortedArrayin classAbstractLazyDoubleIterable
-
toArray
public double[] toArray()Description copied from interface:DoubleIterableConverts the DoubleIterable to a primitive double array.- Specified by:
toArrayin interfaceDoubleIterable- Overrides:
toArrayin classAbstractLazyDoubleIterable
-
contains
public boolean contains(double value) Description copied from interface:DoubleIterableReturns true if the value is contained in the DoubleIterable, and false if it is not.- Specified by:
containsin interfaceDoubleIterable- Overrides:
containsin classAbstractLazyDoubleIterable
-
containsAll
public boolean containsAll(double... source) Description copied from interface:DoubleIterableReturns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAllin interfaceDoubleIterable- Overrides:
containsAllin classAbstractLazyDoubleIterable
-
containsAll
Description copied from interface:DoubleIterableReturns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.- Specified by:
containsAllin interfaceDoubleIterable- Overrides:
containsAllin classAbstractLazyDoubleIterable
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyDoubleIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyDoubleIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyDoubleIterable
-
toList
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleList.- Specified by:
toListin interfaceDoubleIterable- Overrides:
toListin classAbstractLazyDoubleIterable
-
toSet
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSetin interfaceDoubleIterable- Overrides:
toSetin classAbstractLazyDoubleIterable
-
toBag
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBagin interfaceDoubleIterable- Overrides:
toBagin classAbstractLazyDoubleIterable
-
asLazy
Description copied from interface:DoubleIterableReturns a LazyDoubleIterable adapter wrapping the source DoubleIterable.- Specified by:
asLazyin interfaceDoubleIterable- Overrides:
asLazyin classAbstractLazyDoubleIterable
-