Class CollectDoubleIterable<T>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
-
- org.eclipse.collections.impl.lazy.primitive.CollectDoubleIterable<T>
-
- All Implemented Interfaces:
DoubleIterable
,LazyDoubleIterable
,PrimitiveIterable
public class CollectDoubleIterable<T> extends AbstractLazyDoubleIterable
This file was automatically generated from template file collectPrimitiveIterable.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CollectDoubleIterable.DoubleFunctionToProcedure<T>
-
Field Summary
Fields Modifier and Type Field Description private CollectDoubleIterable.DoubleFunctionToProcedure<T>
doubleFunctionToProcedure
private DoubleFunction<? super T>
function
private LazyIterable<T>
iterable
-
Constructor Summary
Constructors Constructor Description CollectDoubleIterable(LazyIterable<T> adapted, DoubleFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allSatisfy(DoublePredicate predicate)
Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy(DoublePredicate predicate)
Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.boolean
containsAll(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.boolean
containsAll(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.int
count(DoublePredicate predicate)
Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.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.boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.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
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, tap, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
-
-
-
Field Detail
-
iterable
private final LazyIterable<T> iterable
-
function
private final DoubleFunction<? super T> function
-
doubleFunctionToProcedure
private final CollectDoubleIterable.DoubleFunctionToProcedure<T> doubleFunctionToProcedure
-
-
Constructor Detail
-
CollectDoubleIterable
public CollectDoubleIterable(LazyIterable<T> adapted, DoubleFunction<? super T> function)
-
-
Method Detail
-
doubleIterator
public DoubleIterator doubleIterator()
Description copied from interface:DoubleIterable
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.
-
each
public void each(DoubleProcedure procedure)
Description copied from interface:DoubleIterable
A synonym for forEach.- Since:
- 7.0.
-
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
-
count
public int count(DoublePredicate predicate)
Description copied from interface:DoubleIterable
Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.- Specified by:
count
in interfaceDoubleIterable
- Overrides:
count
in classAbstractLazyDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
Description copied from interface:DoubleIterable
Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceDoubleIterable
- Overrides:
anySatisfy
in classAbstractLazyDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
Description copied from interface:DoubleIterable
Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceDoubleIterable
- Overrides:
allSatisfy
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
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArray
in interfaceDoubleIterable
- Overrides:
toSortedArray
in classAbstractLazyDoubleIterable
-
toList
public MutableDoubleList toList()
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleList.- Specified by:
toList
in interfaceDoubleIterable
- Overrides:
toList
in classAbstractLazyDoubleIterable
-
toSet
public MutableDoubleSet toSet()
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSet
in interfaceDoubleIterable
- Overrides:
toSet
in classAbstractLazyDoubleIterable
-
toBag
public MutableDoubleBag toBag()
Description copied from interface:DoubleIterable
Converts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBag
in interfaceDoubleIterable
- Overrides:
toBag
in classAbstractLazyDoubleIterable
-
containsAll
public boolean containsAll(double... source)
Description copied from interface:DoubleIterable
Returns true if 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
public boolean containsAll(DoubleIterable source)
Description copied from interface:DoubleIterable
Returns true if 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
-
-