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