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

public Class SelectIntIterable

extends AbstractLazyIntIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, 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 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 IntIterable
private final IntPredicate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(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(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(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
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable:
appendStringappendStringappendStringasLazyaveragechunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfyrejectselectsumtaptoSortedArraytoSortedListtoString

Field Detail

delegateback to summary
private final IntIterable delegate
predicateback to summary
private final IntPredicate predicate

Constructor Detail

SelectIntIterableback to summary
public SelectIntIterable(IntIterable delegate, IntPredicate predicate)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(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(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(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
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class SelectIntIterable.CountIntProcedure

extends Object
implements IntProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectIntIterable.CountIntProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.IntProcedure, java.io.Serializable, java.util.function.IntConsumer

Field Summary

Modifier and TypeField and Description
private int
private final IntPredicate
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 IntPredicate predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CountIntProcedureback to summary
private CountIntProcedure(IntPredicate predicate)

Method Detail

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

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

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

private final Class SelectIntIterable.IfIntProcedure

extends Object
implements IntProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectIntIterable.IfIntProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.IntProcedure, java.io.Serializable, java.util.function.IntConsumer

Field Summary

Modifier and TypeField and Description
private final IntProcedure
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 IntProcedure procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

IfIntProcedureback to summary
private IfIntProcedure(IntProcedure procedure)

Method Detail

valueback to summary
public void value(int each)

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

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

private final Class SelectIntIterable.SelectIntIterator

extends Object
implements IntIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectIntIterable.SelectIntIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.IntIterator

Field Summary

Modifier and TypeField and Description
private final IntIterator
private int
private final IntPredicate
private boolean

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

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

Field Detail

iteratorback to summary
private final IntIterator iterator
nextback to summary
private int next
predicateback to summary
private final IntPredicate predicate
verifiedHasNextback to summary
private boolean verifiedHasNext

Constructor Detail

SelectIntIteratorback to summary
private SelectIntIterator(IntIterable iterable, IntPredicate predicate)
SelectIntIteratorback to summary
private SelectIntIterator(IntIterator iterator, IntPredicate predicate)

Method Detail

hasNextback to summary
public boolean hasNext()

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

Annotations
@Override
nextback to summary
public int next()

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

Annotations
@Override