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

public Class ChunkDoubleIterable

extends AbstractLazyIterable<DoubleIterable>
Class Inheritance
Imports
java.util.Iterator, .NoSuchElementException, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.function.Function0, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection, org.eclipse.collections.api.factory.primitive.DoubleLists, org.eclipse.collections.api.iterator.DoubleIterator, org.eclipse.collections.impl.lazy.AbstractLazyIterable, org.eclipse.collections.impl.utility.internal.IterableIterate

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final DoubleIterable
private final int

Constructor Summary

AccessConstructor and Description
public
ChunkDoubleIterable(DoubleIterable delegate, int size)

Method Summary

Modifier and TypeMethod and Description
public void
each(Procedure<? super DoubleIterable> procedure)

Implements org.eclipse.collections.api.RichIterable.each.

The procedure is executed for each element in the iterable.

public Iterator<DoubleIterable>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Inherited from org.eclipse.collections.impl.lazy.AbstractLazyIterable:
asLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIfcollectIntcollectLongcollectShortcollectWithconcatenatedistinctdropdropWhileflatCollectgetFirstgetLastgetOnlygroupBygroupByEachgroupByUniqueKeyintoisEmptymaxByOptionalmaxOptionalmaxOptionalminByOptionalminOptionalminOptionalpartitionpartitionWithrejectrejectWithselectselectInstancesOfselectWithsizesumByDoublesumByFloatsumByIntsumByLongtaketakeWhiletaptoStackzipzipWithIndex

Field Detail

adaptedback to summary
private final DoubleIterable adapted
sizeback to summary
private final int size

Constructor Detail

ChunkDoubleIterableback to summary
public ChunkDoubleIterable(DoubleIterable delegate, int size)

Method Detail

eachback to summary
public void each(Procedure<? super DoubleIterable> procedure)

Implements org.eclipse.collections.api.RichIterable.each.

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

The procedure is executed for each element in the iterable.

Example using a Java 8 lambda expression:

people.each(person -> LOGGER.info(person.getName()));
This method is a variant of InternalIterable#forEach(Procedure) that has a signature conflict with Iterable#forEach(java.util.function.Consumer).
Annotations
@Override
iteratorback to summary
public Iterator<DoubleIterable> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

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

public Class ChunkDoubleIterable.ChunkDoubleIterator

extends Object
implements Iterator<DoubleIterable>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.ChunkDoubleIterable.ChunkDoubleIterator
All Implemented Interfaces
java.util.Iterator

Field Summary

Modifier and TypeField and Description
private final DoubleIterator
private final int
private final Function0<MutableDoubleCollection>

Constructor Summary

AccessConstructor and Description
public
ChunkDoubleIterator(DoubleIterable iterable, int size)

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public DoubleIterable
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iteratorback to summary
private final DoubleIterator iterator
sizeback to summary
private final int size
speciesNewStrategyback to summary
private final Function0<MutableDoubleCollection> speciesNewStrategy

Constructor Detail

ChunkDoubleIteratorback to summary
public ChunkDoubleIterator(DoubleIterable iterable, int size)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Annotations
@Override
nextback to summary
public DoubleIterable next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Annotations
@Override