LazyLongIterable, LongIterable, PrimitiveIterablepublic class ReverseLongIterable extends AbstractLazyLongIterable
ReverseIterable| Constructor | Description |
|---|---|
ReverseLongIterable(LongList newAdapted) |
| Modifier and Type | Method | Description |
|---|---|---|
static ReverseLongIterable |
adapt(LongList longList) |
|
LazyLongIterable |
asLazy() |
Returns a LazyLongIterable adapter wrapping the source LongIterable.
|
double |
average() |
|
boolean |
contains(long value) |
Returns true if the value is contained in the LongIterable, and false if it is not.
|
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.
|
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.
|
long |
max() |
|
long |
maxIfEmpty(long defaultValue) |
|
double |
median() |
|
long |
min() |
|
long |
minIfEmpty(long defaultValue) |
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
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.
|
long[] |
toSortedArray() |
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic ReverseLongIterable(LongList newAdapted)
public static ReverseLongIterable adapt(LongList longList)
public LongIterator longIterator()
LongIterablepublic void each(LongProcedure procedure)
LongIterablepublic long sum()
sum in interface LongIterablesum in class AbstractLazyLongIterablepublic long max()
max in interface LongIterablemax in class AbstractLazyLongIterablepublic long min()
min in interface LongIterablemin in class AbstractLazyLongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface LongIterableminIfEmpty in class AbstractLazyLongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface LongIterablemaxIfEmpty in class AbstractLazyLongIterablepublic double average()
average in interface LongIterableaverage in class AbstractLazyLongIterablepublic double median()
median in interface LongIterablemedian in class AbstractLazyLongIterablepublic long[] toSortedArray()
toSortedArray in interface LongIterabletoSortedArray in class AbstractLazyLongIterablepublic long[] toArray()
LongIterabletoArray in interface LongIterabletoArray in class AbstractLazyLongIterablepublic boolean contains(long value)
LongIterablecontains in interface LongIterablecontains 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 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 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 AbstractLazyLongIterablepublic LazyLongIterable asLazy()
LongIterableasLazy in interface LongIterableasLazy in class AbstractLazyLongIterableCopyright © 2004–2019. All rights reserved.