Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.lazy.primitive

public Class SelectDoubleIterable

extends AbstractLazyDoubleIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.bag.primitive.MutableDoubleBag, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.factory.primitive.DoubleBags, .DoubleLists, .DoubleSets, org.eclipse.collections.api.iterator.DoubleIterator, org.eclipse.collections.api.list.primitive.MutableDoubleList, org.eclipse.collections.api.set.primitive.MutableDoubleSet

This file was automatically generated from template file selectPrimitiveIterable.stg.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private static class

Field Summary

Modifier and TypeField and Description
private final DoubleIterable
private final DoublePredicate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.allSatisfy.

Implements org.eclipse.collections.api.DoubleIterable.allSatisfy.

Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.anySatisfy.

Implements org.eclipse.collections.api.DoubleIterable.anySatisfy.

Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.

public boolean
containsAll(double... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.containsAll.

Overrides default org.eclipse.collections.api.DoubleIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.

public boolean
containsAll(DoubleIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.containsAll.

Overrides default org.eclipse.collections.api.DoubleIterable.containsAll.

Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.

public int
count(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.count.

Implements org.eclipse.collections.api.DoubleIterable.count.

Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.

public DoubleIterator
doubleIterator()

Implements org.eclipse.collections.api.DoubleIterable.doubleIterator.

Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.

public void
each(DoubleProcedure procedure)

Implements org.eclipse.collections.api.DoubleIterable.each.

A synonym for forEach.

public boolean
public boolean
public int
public double[]
public MutableDoubleBag
public MutableDoubleList
public MutableDoubleSet
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedArraytoSortedListtoString

Field Detail

delegateback to summary
private final DoubleIterable delegate
predicateback to summary
private final DoublePredicate predicate

Constructor Detail

SelectDoubleIterableback to summary
public SelectDoubleIterable(DoubleIterable delegate, DoublePredicate predicate)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.allSatisfy.

Implements org.eclipse.collections.api.DoubleIterable.allSatisfy.

Doc from org.eclipse.collections.api.DoubleIterable.allSatisfy.

Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
anySatisfyback to summary
public boolean anySatisfy(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.anySatisfy.

Implements org.eclipse.collections.api.DoubleIterable.anySatisfy.

Doc from org.eclipse.collections.api.DoubleIterable.anySatisfy.

Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
containsAllback to summary
public boolean containsAll(double... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.containsAll.

Overrides default org.eclipse.collections.api.DoubleIterable.containsAll.

Doc from org.eclipse.collections.api.DoubleIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not.

Annotations
@Override
containsAllback to summary
public boolean containsAll(DoubleIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.containsAll.

Overrides default org.eclipse.collections.api.DoubleIterable.containsAll.

Doc from org.eclipse.collections.api.DoubleIterable.containsAll.

Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.

Annotations
@Override
countback to summary
public int count(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.count.

Implements org.eclipse.collections.api.DoubleIterable.count.

Doc from org.eclipse.collections.api.DoubleIterable.count.

Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate.

Annotations
@Override
doubleIteratorback to summary
public DoubleIterator doubleIterator()

Implements org.eclipse.collections.api.DoubleIterable.doubleIterator.

Doc from org.eclipse.collections.api.DoubleIterable.doubleIterator.

Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.

Annotations
@Override
eachback to summary
public void each(DoubleProcedure procedure)

Implements org.eclipse.collections.api.DoubleIterable.each.

Doc from org.eclipse.collections.api.DoubleIterable.each.

A synonym for forEach.

Annotations
@Override
Since
7.0.
isEmptyback to summary
public boolean isEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.isEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

Annotations
@Override
notEmptyback to summary
public boolean notEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.notEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

Annotations
@Override
sizeback to summary
public int size()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.size.

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Doc from org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
toArrayback to summary
public double[] toArray()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.toArray.

Implements org.eclipse.collections.api.DoubleIterable.toArray.

Doc from org.eclipse.collections.api.DoubleIterable.toArray.

Converts the DoubleIterable to a primitive double array.

Annotations
@Override
toBagback to summary
public MutableDoubleBag toBag()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.toBag.

Implements org.eclipse.collections.api.DoubleIterable.toBag.

Doc from org.eclipse.collections.api.DoubleIterable.toBag.

Converts the DoubleIterable to a new MutableDoubleBag.

Annotations
@Override
toListback to summary
public MutableDoubleList toList()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.toList.

Implements org.eclipse.collections.api.DoubleIterable.toList.

Doc from org.eclipse.collections.api.DoubleIterable.toList.

Converts the DoubleIterable to a new MutableDoubleList.

Annotations
@Override
toSetback to summary
public MutableDoubleSet toSet()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable.toSet.

Implements org.eclipse.collections.api.DoubleIterable.toSet.

Doc from org.eclipse.collections.api.DoubleIterable.toSet.

Converts the DoubleIterable to a new MutableDoubleSet.

Annotations
@Override
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class SelectDoubleIterable.CountDoubleProcedure

extends Object
implements DoubleProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectDoubleIterable.CountDoubleProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, java.io.Serializable, java.util.function.DoubleConsumer

Field Summary

Modifier and TypeField and Description
private int
private final DoublePredicate
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
private int counter
predicateback to summary
private final DoublePredicate predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CountDoubleProcedureback to summary
private CountDoubleProcedure(DoublePredicate predicate)

Method Detail

getCountback to summary
public int getCount()
valueback to summary
public void value(double each)

Implements org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure.value.

Annotations
@Override
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class SelectDoubleIterable.IfDoubleProcedure

extends Object
implements DoubleProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectDoubleIterable.IfDoubleProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, java.io.Serializable, java.util.function.DoubleConsumer

Field Summary

Modifier and TypeField and Description
private final DoubleProcedure
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

procedureback to summary
private final DoubleProcedure procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

IfDoubleProcedureback to summary
private IfDoubleProcedure(DoubleProcedure procedure)

Method Detail

valueback to summary
public void value(double each)

Implements org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure.value.

Annotations
@Override
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class SelectDoubleIterable.SelectDoubleIterator

extends Object
implements DoubleIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectDoubleIterable.SelectDoubleIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.DoubleIterator

Field Summary

Modifier and TypeField and Description
private final DoubleIterator
private double
private final DoublePredicate
private boolean

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public double
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iteratorback to summary
private final DoubleIterator iterator
nextback to summary
private double next
predicateback to summary
private final DoublePredicate predicate
verifiedHasNextback to summary
private boolean verifiedHasNext

Constructor Detail

SelectDoubleIteratorback to summary
private SelectDoubleIterator(DoubleIterable iterable, DoublePredicate predicate)
SelectDoubleIteratorback to summary
private SelectDoubleIterator(DoubleIterator iterator, DoublePredicate predicate)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.eclipse.collections.api.iterator.DoubleIterator.hasNext.

Annotations
@Override
nextback to summary
public double next()

Implements org.eclipse.collections.api.iterator.DoubleIterator.next.

Annotations
@Override