public class SelectLongIterable extends AbstractLazyLongIterable
| Constructor and Description |
|---|
SelectLongIterable(com.gs.collections.api.LongIterable delegate,
com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
double |
average() |
boolean |
containsAll(long... source) |
boolean |
containsAll(com.gs.collections.api.LongIterable source) |
int |
count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
com.gs.collections.api.iterator.LongIterator |
longIterator() |
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
long[] |
toArray() |
com.gs.collections.api.bag.primitive.MutableLongBag |
toBag() |
com.gs.collections.api.list.primitive.MutableLongList |
toList() |
com.gs.collections.api.set.primitive.MutableLongSet |
toSet() |
long[] |
toSortedArray() |
com.gs.collections.api.list.primitive.MutableLongList |
toSortedList() |
appendString, appendString, appendString, asLazy, collect, contains, detectIfNone, injectInto, makeString, makeString, makeString, reject, select, toStringpublic SelectLongIterable(com.gs.collections.api.LongIterable delegate,
com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
public com.gs.collections.api.iterator.LongIterator longIterator()
public void forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
public int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablesize in class AbstractLazyLongIterablepublic boolean isEmpty()
com.gs.collections.api.PrimitiveIterableisEmpty in interface com.gs.collections.api.PrimitiveIterableisEmpty in class AbstractLazyLongIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractLazyLongIterablepublic int count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface com.gs.collections.api.LongIterablecount in class AbstractLazyLongIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface com.gs.collections.api.LongIterableanySatisfy in class AbstractLazyLongIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface com.gs.collections.api.LongIterableallSatisfy in class AbstractLazyLongIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface com.gs.collections.api.LongIterablenoneSatisfy in class AbstractLazyLongIterablepublic long sum()
sum in interface com.gs.collections.api.LongIterablesum in class AbstractLazyLongIterablepublic long max()
max in interface com.gs.collections.api.LongIterablemax in class AbstractLazyLongIterablepublic long min()
min in interface com.gs.collections.api.LongIterablemin in class AbstractLazyLongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface com.gs.collections.api.LongIterableminIfEmpty in class AbstractLazyLongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface com.gs.collections.api.LongIterablemaxIfEmpty in class AbstractLazyLongIterablepublic double average()
average in interface com.gs.collections.api.LongIterableaverage in class AbstractLazyLongIterablepublic double median()
median in interface com.gs.collections.api.LongIterablemedian in class AbstractLazyLongIterablepublic long[] toSortedArray()
toSortedArray in interface com.gs.collections.api.LongIterabletoSortedArray in class AbstractLazyLongIterablepublic com.gs.collections.api.list.primitive.MutableLongList toSortedList()
toSortedList in interface com.gs.collections.api.LongIterabletoSortedList in class AbstractLazyLongIterablepublic long[] toArray()
toArray in interface com.gs.collections.api.LongIterabletoArray in class AbstractLazyLongIterablepublic boolean containsAll(long... source)
containsAll in interface com.gs.collections.api.LongIterablecontainsAll in class AbstractLazyLongIterablepublic boolean containsAll(com.gs.collections.api.LongIterable source)
containsAll in interface com.gs.collections.api.LongIterablecontainsAll in class AbstractLazyLongIterablepublic com.gs.collections.api.list.primitive.MutableLongList toList()
toList in interface com.gs.collections.api.LongIterabletoList in class AbstractLazyLongIterablepublic com.gs.collections.api.set.primitive.MutableLongSet toSet()
toSet in interface com.gs.collections.api.LongIterabletoSet in class AbstractLazyLongIterablepublic com.gs.collections.api.bag.primitive.MutableLongBag toBag()
toBag in interface com.gs.collections.api.LongIterabletoBag in class AbstractLazyLongIterable