@Immutable public class CollectIntIterable<T> extends AbstractLazyIntIterable
| Constructor and Description |
|---|
CollectIntIterable(LazyIterable<T> adapted,
IntFunction<? super T> function) |
| Modifier and Type | Method and 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.
|
void |
forEach(IntProcedure procedure)
Applies the IntProcedure to each element in the IntIterable.
|
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.
|
int[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, toSortedList, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, select, summaryStatisticspublic CollectIntIterable(LazyIterable<T> adapted, IntFunction<? super T> function)
public IntIterator intIterator()
IntIterablepublic void forEach(IntProcedure procedure)
IntIterableforEach in interface IntIterableforEach in class AbstractLazyIntIterablepublic void each(IntProcedure procedure)
IntIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyIntIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyIntIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyIntIterablepublic int count(IntPredicate predicate)
IntIterablecount in interface IntIterablecount in class AbstractLazyIntIterablepublic boolean anySatisfy(IntPredicate predicate)
IntIterableanySatisfy in interface IntIterableanySatisfy in class AbstractLazyIntIterablepublic boolean allSatisfy(IntPredicate predicate)
IntIterableallSatisfy in interface IntIterableallSatisfy in class AbstractLazyIntIterablepublic boolean noneSatisfy(IntPredicate predicate)
IntIterablenoneSatisfy in interface IntIterablenoneSatisfy in class AbstractLazyIntIterablepublic int[] toArray()
IntIterabletoArray in interface IntIterabletoArray in class AbstractLazyIntIterablepublic int[] toSortedArray()
toSortedArray in interface IntIterabletoSortedArray in class AbstractLazyIntIterablepublic MutableIntList toList()
IntIterabletoList in interface IntIterabletoList in class AbstractLazyIntIterablepublic MutableIntSet toSet()
IntIterabletoSet in interface IntIterabletoSet in class AbstractLazyIntIterablepublic MutableIntBag toBag()
IntIterabletoBag in interface IntIterabletoBag in class AbstractLazyIntIterablepublic boolean containsAll(int... source)
IntIterablecontainsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic boolean containsAll(IntIterable source)
IntIterablecontainsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterableCopyright © 2004–2017. All rights reserved.