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

public Class CollectIntIterable<T>

extends AbstractLazyIntIterable
Class Inheritance
Imports
java.util.Arrays, .Iterator, org.eclipse.collections.api.IntIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, org.eclipse.collections.api.block.function.primitive.IntFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.Procedure2, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.factory.primitive.IntBags, .IntLists, .IntSets, org.eclipse.collections.api.iterator.IntIterator, org.eclipse.collections.api.list.primitive.MutableIntList, org.eclipse.collections.api.set.primitive.MutableIntSet

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 IntFunction<? super T>
private final CollectIntIterable.IntFunctionToProcedure<T>
private final LazyIterable<T>

Constructor Summary

AccessConstructor and Description
public
CollectIntIterable(LazyIterable<T> adapted, IntFunction<? super T> function)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(final IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

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

public boolean
anySatisfy(final IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

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

public boolean
containsAll(int... source)

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

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

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

public boolean
containsAll(IntIterable source)

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

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

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

public int
count(final IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.count.

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

public void
each(IntProcedure procedure)

Implements org.eclipse.collections.api.IntIterable.each.

A synonym for forEach.

public IntIterator
intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

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

public boolean
public boolean
public int
public int[]
public MutableIntBag
public MutableIntList
public MutableIntSet
public int[]
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedListtoString

Field Detail

functionback to summary
private final IntFunction<? super T> function
intFunctionToProcedureback to summary
private final CollectIntIterable.IntFunctionToProcedure<T> intFunctionToProcedure
iterableback to summary
private final LazyIterable<T> iterable

Constructor Detail

CollectIntIterableback to summary
public CollectIntIterable(LazyIterable<T> adapted, IntFunction<? super T> function)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(final IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

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

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

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

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

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Implements org.eclipse.collections.api.IntIterable.count.

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

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

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

Implements org.eclipse.collections.api.IntIterable.each.

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

A synonym for forEach.

Annotations
@Override
Since
7.0.
intIteratorback to summary
public IntIterator intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

Doc from org.eclipse.collections.api.IntIterable.intIterator.

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

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.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.AbstractLazyIntIterable.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.AbstractLazyIntIterable.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 int[] toArray()

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

Implements org.eclipse.collections.api.IntIterable.toArray.

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

Converts the IntIterable to a primitive int array.

Annotations
@Override
toBagback to summary
public MutableIntBag toBag()

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

Implements org.eclipse.collections.api.IntIterable.toBag.

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

Converts the IntIterable to a new MutableIntBag.

Annotations
@Override
toListback to summary
public MutableIntList toList()

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

Implements org.eclipse.collections.api.IntIterable.toList.

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

Converts the IntIterable to a new MutableIntList.

Annotations
@Override
toSetback to summary
public MutableIntSet toSet()

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

Implements org.eclipse.collections.api.IntIterable.toSet.

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

Converts the IntIterable to a new MutableIntSet.

Annotations
@Override
toSortedArrayback to summary
public int[] toSortedArray()

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

Implements org.eclipse.collections.api.IntIterable.toSortedArray.

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

private final Class CollectIntIterable.IntFunctionToProcedure<T>

extends Object
implements Procedure2<T, IntProcedure>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.CollectIntIterable.IntFunctionToProcedure
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 IntFunction<? super T>
private static final long

Constructor Summary

AccessConstructor and Description
private
IntFunctionToProcedure(IntFunction<? super T> function)

Method Summary

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

Field Detail

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

Constructor Detail

IntFunctionToProcedureback to summary
private IntFunctionToProcedure(IntFunction<? super T> function)

Method Detail

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

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

Annotations
@Override