LazyLongIterable, LongIterable, PrimitiveIterablepublic class SelectLongIterable extends AbstractLazyLongIterable
| Constructor | Description |
|---|---|
SelectLongIterable(LongIterable delegate,
LongPredicate predicate) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
Returns true if all of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(LongPredicate predicate) |
Returns true if any of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
containsAll(long... source) |
Returns true if the all of the values specified in the source array are contained
in the LongIterable, and false if they are not.
|
boolean |
containsAll(LongIterable source) |
Returns true if the all of the values specified in the source LongIterable are contained
in the LongIterable, and false if they are not.
|
int |
count(LongPredicate predicate) |
Returns a count of the number of elements in the LongIterable that return true for the
specified predicate.
|
void |
each(LongProcedure procedure) |
A synonym for forEach.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
LongIterator |
longIterator() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
boolean |
noneSatisfy(LongPredicate predicate) |
Returns true if none of the elements in the LongIterable 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.
|
long[] |
toArray() |
Converts the LongIterable to a primitive long array.
|
MutableLongBag |
toBag() |
Converts the LongIterable to a new MutableLongBag.
|
MutableLongList |
toList() |
Converts the LongIterable to a new MutableLongList.
|
MutableLongSet |
toSet() |
Converts the LongIterable to a new MutableLongSet.
|
appendString, appendString, appendString, asLazy, average, 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, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatisticspublic SelectLongIterable(LongIterable delegate, LongPredicate predicate)
public LongIterator longIterator()
LongIterablepublic void each(LongProcedure procedure)
LongIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyLongIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyLongIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyLongIterablepublic int count(LongPredicate predicate)
LongIterablecount in interface LongIterablecount in class AbstractLazyLongIterablepublic boolean anySatisfy(LongPredicate predicate)
LongIterableanySatisfy in interface LongIterableanySatisfy in class AbstractLazyLongIterablepublic boolean allSatisfy(LongPredicate predicate)
LongIterableallSatisfy in interface LongIterableallSatisfy in class AbstractLazyLongIterablepublic boolean noneSatisfy(LongPredicate predicate)
LongIterablenoneSatisfy in interface LongIterablenoneSatisfy in class AbstractLazyLongIterablepublic long[] toArray()
LongIterabletoArray in interface LongIterabletoArray in class AbstractLazyLongIterablepublic boolean containsAll(long... source)
LongIterablecontainsAll in interface LongIterablecontainsAll in class AbstractLazyLongIterablepublic boolean containsAll(LongIterable source)
LongIterablecontainsAll in interface LongIterablecontainsAll in class AbstractLazyLongIterablepublic MutableLongList toList()
LongIterabletoList in interface LongIterabletoList in class AbstractLazyLongIterablepublic MutableLongSet toSet()
LongIterabletoSet in interface LongIterabletoSet in class AbstractLazyLongIterablepublic MutableLongBag toBag()
LongIterabletoBag in interface LongIterabletoBag in class AbstractLazyLongIterableCopyright © 2004–2018. All rights reserved.