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
public class ReverseDoubleIterable extends AbstractLazyDoubleIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
ReverseIterable
-
Constructor Summary
Constructors Constructor Description ReverseDoubleIterable(DoubleList newAdapted)
-
Method Summary
Modifier and Type Method Description static ReverseDoubleIterable
adapt(DoubleList doubleList)
LazyDoubleIterable
asLazy()
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.double
average()
boolean
contains(double value)
Returns true if the value is contained in the DoubleIterable, and false if it is not.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.DoubleIterator
doubleIterator()
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.void
each(DoubleProcedure procedure)
A synonym for forEach.boolean
isEmpty()
Returns true if this iterable has zero items.double
max()
double
maxIfEmpty(double defaultValue)
double
median()
double
min()
double
minIfEmpty(double defaultValue)
boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.double
sum()
double[]
toArray()
Converts the DoubleIterable to a primitive double array.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()
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, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
adapt
-
doubleIterator
Description copied from interface:DoubleIterable
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. -
each
Description copied from interface:DoubleIterable
A synonym for forEach.- Since:
- 7.0.
-
sum
public double sum()- Specified by:
sum
in interfaceDoubleIterable
- Overrides:
sum
in classAbstractLazyDoubleIterable
-
max
public double max()- Specified by:
max
in interfaceDoubleIterable
- Overrides:
max
in classAbstractLazyDoubleIterable
-
min
public double min()- Specified by:
min
in interfaceDoubleIterable
- Overrides:
min
in classAbstractLazyDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)- Specified by:
minIfEmpty
in interfaceDoubleIterable
- Overrides:
minIfEmpty
in classAbstractLazyDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)- Specified by:
maxIfEmpty
in interfaceDoubleIterable
- Overrides:
maxIfEmpty
in classAbstractLazyDoubleIterable
-
average
public double average()- Specified by:
average
in interfaceDoubleIterable
- Overrides:
average
in classAbstractLazyDoubleIterable
-
median
public double median()- Specified by:
median
in interfaceDoubleIterable
- Overrides:
median
in classAbstractLazyDoubleIterable
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArray
in interfaceDoubleIterable
- Overrides:
toSortedArray
in classAbstractLazyDoubleIterable
-
toArray
public double[] toArray()Description copied from interface:DoubleIterable
Converts the DoubleIterable to a primitive double array.- Specified by:
toArray
in interfaceDoubleIterable
- Overrides:
toArray
in classAbstractLazyDoubleIterable
-
contains
public boolean contains(double value)Description copied from interface:DoubleIterable
Returns true if the value is contained in the DoubleIterable, and false if it is not.- Specified by:
contains
in interfaceDoubleIterable
- Overrides:
contains
in classAbstractLazyDoubleIterable
-
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
- Overrides:
containsAll
in classAbstractLazyDoubleIterable
-
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
- Overrides:
containsAll
in classAbstractLazyDoubleIterable
-
size
public int size()Description copied from interface:PrimitiveIterable
Returns the number of items in this iterable.- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyDoubleIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterable
Returns true if this iterable has zero items.- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyDoubleIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyDoubleIterable
-
toList
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleList.- Specified by:
toList
in interfaceDoubleIterable
- Overrides:
toList
in classAbstractLazyDoubleIterable
-
toSet
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSet
in interfaceDoubleIterable
- Overrides:
toSet
in classAbstractLazyDoubleIterable
-
toBag
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBag
in interfaceDoubleIterable
- Overrides:
toBag
in classAbstractLazyDoubleIterable
-
asLazy
Description copied from interface:DoubleIterable
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.- Specified by:
asLazy
in interfaceDoubleIterable
- Overrides:
asLazy
in classAbstractLazyDoubleIterable
-