public class SelectIntIterable extends AbstractLazyIntIterable
| Constructor and Description |
|---|
SelectIntIterable(IntIterable delegate,
IntPredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(IntPredicate predicate) |
boolean |
anySatisfy(IntPredicate predicate) |
double |
average() |
boolean |
containsAll(int... source) |
boolean |
containsAll(IntIterable source) |
int |
count(IntPredicate predicate) |
void |
forEach(IntProcedure procedure) |
IntIterator |
intIterator() |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
int |
max() |
int |
maxIfEmpty(int defaultValue) |
double |
median() |
int |
min() |
int |
minIfEmpty(int defaultValue) |
boolean |
noneSatisfy(IntPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
int[] |
toArray() |
MutableIntBag |
toBag() |
MutableIntList |
toList() |
MutableIntSet |
toSet() |
int[] |
toSortedArray() |
MutableIntList |
toSortedList() |
appendString, appendString, appendString, asLazy, collect, contains, detectIfNone, injectInto, makeString, makeString, makeString, reject, select, toStringpublic SelectIntIterable(IntIterable delegate, IntPredicate predicate)
public IntIterator intIterator()
public void forEach(IntProcedure procedure)
public 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)
count in interface IntIterablecount in class AbstractLazyIntIterablepublic boolean anySatisfy(IntPredicate predicate)
anySatisfy in interface IntIterableanySatisfy in class AbstractLazyIntIterablepublic boolean allSatisfy(IntPredicate predicate)
allSatisfy in interface IntIterableallSatisfy in class AbstractLazyIntIterablepublic boolean noneSatisfy(IntPredicate predicate)
noneSatisfy in interface IntIterablenoneSatisfy in class AbstractLazyIntIterablepublic long sum()
sum in interface IntIterablesum in class AbstractLazyIntIterablepublic int max()
max in interface IntIterablemax in class AbstractLazyIntIterablepublic int min()
min in interface IntIterablemin in class AbstractLazyIntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface IntIterableminIfEmpty in class AbstractLazyIntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface IntIterablemaxIfEmpty in class AbstractLazyIntIterablepublic double average()
average in interface IntIterableaverage in class AbstractLazyIntIterablepublic double median()
median in interface IntIterablemedian in class AbstractLazyIntIterablepublic int[] toSortedArray()
toSortedArray in interface IntIterabletoSortedArray in class AbstractLazyIntIterablepublic MutableIntList toSortedList()
toSortedList in interface IntIterabletoSortedList in class AbstractLazyIntIterablepublic int[] toArray()
toArray in interface IntIterabletoArray in class AbstractLazyIntIterablepublic boolean containsAll(int... source)
containsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic boolean containsAll(IntIterable source)
containsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic MutableIntList toList()
toList in interface IntIterabletoList in class AbstractLazyIntIterablepublic MutableIntSet toSet()
toSet in interface IntIterabletoSet in class AbstractLazyIntIterablepublic MutableIntBag toBag()
toBag in interface IntIterabletoBag in class AbstractLazyIntIterableCopyright © 2004–2017. All rights reserved.