Class SelectDoubleIterable
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable
-
- org.eclipse.collections.impl.lazy.primitive.SelectDoubleIterable
-
- All Implemented Interfaces:
DoubleIterable,LazyDoubleIterable,PrimitiveIterable
public class SelectDoubleIterable extends AbstractLazyDoubleIterable
This file was automatically generated from template file selectPrimitiveIterable.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSelectDoubleIterable.CountDoubleProcedureprivate classSelectDoubleIterable.IfDoubleProcedureprivate static classSelectDoubleIterable.SelectDoubleIterator
-
Field Summary
Fields Modifier and Type Field Description private DoubleIterabledelegateprivate DoublePredicatepredicate
-
Constructor Summary
Constructors Constructor Description SelectDoubleIterable(DoubleIterable delegate, DoublePredicate predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(DoublePredicate predicate)Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(DoublePredicate predicate)Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.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.intcount(DoublePredicate predicate)Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.DoubleIteratordoubleIterator()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.booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.double[]toArray()Converts the DoubleIterable to a primitive double array.MutableDoubleBagtoBag()Converts the DoubleIterable to a new MutableDoubleBag.MutableDoubleListtoList()Converts the DoubleIterable to a new MutableDoubleList.MutableDoubleSettoSet()Converts the DoubleIterable to a new MutableDoubleSet.-
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, toSortedArray, 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
-
delegate
private final DoubleIterable delegate
-
predicate
private final DoublePredicate predicate
-
-
Constructor Detail
-
SelectDoubleIterable
public SelectDoubleIterable(DoubleIterable delegate, DoublePredicate predicate)
-
-
Method Detail
-
doubleIterator
public DoubleIterator doubleIterator()
Description copied from interface:DoubleIterableReturns 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:DoubleIterableA synonym for forEach.- Since:
- 7.0.
-
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
-
count
public int count(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns a count of the number of elements in the DoubleIterable that return true for the specified predicate.- Specified by:
countin interfaceDoubleIterable- Overrides:
countin classAbstractLazyDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceDoubleIterable- Overrides:
anySatisfyin classAbstractLazyDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceDoubleIterable- Overrides:
allSatisfyin classAbstractLazyDoubleIterable
-
toArray
public double[] toArray()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a primitive double array.- Specified by:
toArrayin interfaceDoubleIterable- Overrides:
toArrayin 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
public boolean containsAll(DoubleIterable source)
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
-
toList
public MutableDoubleList toList()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleList.- Specified by:
toListin interfaceDoubleIterable- Overrides:
toListin classAbstractLazyDoubleIterable
-
toSet
public MutableDoubleSet toSet()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleSet.- Specified by:
toSetin interfaceDoubleIterable- Overrides:
toSetin classAbstractLazyDoubleIterable
-
toBag
public MutableDoubleBag toBag()
Description copied from interface:DoubleIterableConverts the DoubleIterable to a new MutableDoubleBag.- Specified by:
toBagin interfaceDoubleIterable- Overrides:
toBagin classAbstractLazyDoubleIterable
-
-