Class SelectIntIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable
org.eclipse.collections.impl.lazy.primitive.SelectIntIterable
- All Implemented Interfaces:
IntIterable
,LazyIntIterable
,PrimitiveIterable
public class SelectIntIterable extends AbstractLazyIntIterable
This file was automatically generated from template file selectPrimitiveIterable.stg.
-
Constructor Summary
Constructors Constructor Description SelectIntIterable(IntIterable delegate, IntPredicate predicate)
-
Method Summary
Modifier and Type Method Description boolean
allSatisfy(IntPredicate predicate)
Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy(IntPredicate predicate)
Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.boolean
containsAll(int... source)
Returns true if the all of the values specified in the source array are contained in the IntIterable, and false if they are not.boolean
containsAll(IntIterable source)
Returns true if the all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.int
count(IntPredicate predicate)
Returns a count of the number of elements in the IntIterable that return true for the specified predicate.void
each(IntProcedure procedure)
A synonym for forEach.IntIterator
intIterator()
Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.boolean
isEmpty()
Returns true if this iterable has zero items.boolean
noneSatisfy(IntPredicate predicate)
Returns true if none of the elements in the IntIterable return true for the specified predicate, otherwise returns false.boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.int[]
toArray()
Converts the IntIterable to a primitive int array.MutableIntBag
toBag()
Converts the IntIterable to a new MutableIntBag.MutableIntList
toList()
Converts the IntIterable to a new MutableIntList.MutableIntSet
toSet()
Converts the IntIterable to a new MutableIntSet.Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedArray, toSortedList, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.IntIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
intIterator
Description copied from interface:IntIterable
Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style. -
each
Description copied from interface:IntIterable
A synonym for forEach.- Since:
- 7.0.
-
size
public int size()Description copied from interface:PrimitiveIterable
Returns the number of items in this iterable.- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyIntIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterable
Returns true if this iterable has zero items.- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyIntIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyIntIterable
-
count
Description copied from interface:IntIterable
Returns a count of the number of elements in the IntIterable that return true for the specified predicate.- Specified by:
count
in interfaceIntIterable
- Overrides:
count
in classAbstractLazyIntIterable
-
anySatisfy
Description copied from interface:IntIterable
Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceIntIterable
- Overrides:
anySatisfy
in classAbstractLazyIntIterable
-
allSatisfy
Description copied from interface:IntIterable
Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceIntIterable
- Overrides:
allSatisfy
in classAbstractLazyIntIterable
-
noneSatisfy
Description copied from interface:IntIterable
Returns true if none of the elements in the IntIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfy
in interfaceIntIterable
- Overrides:
noneSatisfy
in classAbstractLazyIntIterable
-
toArray
public int[] toArray()Description copied from interface:IntIterable
Converts the IntIterable to a primitive int array.- Specified by:
toArray
in interfaceIntIterable
- Overrides:
toArray
in classAbstractLazyIntIterable
-
containsAll
public boolean containsAll(int... source)Description copied from interface:IntIterable
Returns true if the all of the values specified in the source array are contained in the IntIterable, and false if they are not.- Specified by:
containsAll
in interfaceIntIterable
- Overrides:
containsAll
in classAbstractLazyIntIterable
-
containsAll
Description copied from interface:IntIterable
Returns true if the all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.- Specified by:
containsAll
in interfaceIntIterable
- Overrides:
containsAll
in classAbstractLazyIntIterable
-
toList
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntList.- Specified by:
toList
in interfaceIntIterable
- Overrides:
toList
in classAbstractLazyIntIterable
-
toSet
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntSet.- Specified by:
toSet
in interfaceIntIterable
- Overrides:
toSet
in classAbstractLazyIntIterable
-
toBag
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntBag.- Specified by:
toBag
in interfaceIntIterable
- Overrides:
toBag
in classAbstractLazyIntIterable
-