LazyLongIterable
, LongIterable
, PrimitiveIterable
public 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, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public ReverseLongIterable(LongList newAdapted)
public static ReverseLongIterable adapt(LongList longList)
public LongIterator longIterator()
LongIterable
public void each(LongProcedure procedure)
LongIterable
public long sum()
sum
in interface LongIterable
sum
in class AbstractLazyLongIterable
public long max()
max
in interface LongIterable
max
in class AbstractLazyLongIterable
public long min()
min
in interface LongIterable
min
in class AbstractLazyLongIterable
public long minIfEmpty(long defaultValue)
minIfEmpty
in interface LongIterable
minIfEmpty
in class AbstractLazyLongIterable
public long maxIfEmpty(long defaultValue)
maxIfEmpty
in interface LongIterable
maxIfEmpty
in class AbstractLazyLongIterable
public double average()
average
in interface LongIterable
average
in class AbstractLazyLongIterable
public double median()
median
in interface LongIterable
median
in class AbstractLazyLongIterable
public long[] toSortedArray()
toSortedArray
in interface LongIterable
toSortedArray
in class AbstractLazyLongIterable
public long[] toArray()
LongIterable
toArray
in interface LongIterable
toArray
in class AbstractLazyLongIterable
public boolean contains(long value)
LongIterable
contains
in interface LongIterable
contains
in class AbstractLazyLongIterable
public boolean containsAll(long... source)
LongIterable
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
public boolean containsAll(LongIterable source)
LongIterable
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyLongIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyLongIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyLongIterable
public MutableLongList toList()
LongIterable
toList
in interface LongIterable
toList
in class AbstractLazyLongIterable
public MutableLongSet toSet()
LongIterable
toSet
in interface LongIterable
toSet
in class AbstractLazyLongIterable
public MutableLongBag toBag()
LongIterable
toBag
in interface LongIterable
toBag
in class AbstractLazyLongIterable
public LazyLongIterable asLazy()
LongIterable
asLazy
in interface LongIterable
asLazy
in class AbstractLazyLongIterable
Copyright © 2004–2019. All rights reserved.