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

public Class CollectDoubleIterable<T>

extends AbstractLazyDoubleIterable
Class Inheritance
Imports
java.util.Arrays, .Iterator, org.eclipse.collections.api.DoubleIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableDoubleBag, org.eclipse.collections.api.block.function.primitive.DoubleFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.Procedure2, 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 collectPrimitiveIterable.stg.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final CollectDoubleIterable.DoubleFunctionToProcedure<T>
private final DoubleFunction<? super T>
private final LazyIterable<T>

Constructor Summary

AccessConstructor and Description
public
CollectDoubleIterable(LazyIterable<T> adapted, DoubleFunction<? super T> function)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(final 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(final 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(final 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
public double[]
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyDoubleIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedListtoString

Field Detail

doubleFunctionToProcedureback to summary
private final CollectDoubleIterable.DoubleFunctionToProcedure<T> doubleFunctionToProcedure
functionback to summary
private final DoubleFunction<? super T> function
iterableback to summary
private final LazyIterable<T> iterable

Constructor Detail

CollectDoubleIterableback to summary
public CollectDoubleIterable(LazyIterable<T> adapted, DoubleFunction<? super T> function)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(final 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(final 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(final 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
toSortedArrayback to summary
public double[] toSortedArray()

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

Implements org.eclipse.collections.api.DoubleIterable.toSortedArray.

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

private final Class CollectDoubleIterable.DoubleFunctionToProcedure<T>

extends Object
implements Procedure2<T, DoubleProcedure>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.CollectDoubleIterable.DoubleFunctionToProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure2, java.io.Serializable, java.util.function.BiConsumer

Field Summary

Modifier and TypeField and Description
private final DoubleFunction<? super T>
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

functionback to summary
private final DoubleFunction<? super T> function
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

DoubleFunctionToProcedureback to summary
private DoubleFunctionToProcedure(DoubleFunction<? super T> function)

Method Detail

valueback to summary
public void value(T each, DoubleProcedure procedure)

Implements org.eclipse.collections.api.block.procedure.Procedure2.value.

Annotations
@Override