IntIterable
, LazyIntIterable
, PrimitiveIterable
public class ReverseIntIterable extends AbstractLazyIntIterable
ReverseIterable
Constructor | Description |
---|---|
ReverseIntIterable(IntList newAdapted) |
Modifier and Type | Method | Description |
---|---|---|
static ReverseIntIterable |
adapt(IntList intList) |
|
LazyIntIterable |
asLazy() |
Returns a LazyIntIterable adapter wrapping the source IntIterable.
|
double |
average() |
|
boolean |
contains(int value) |
Returns true if the value is contained in the IntIterable, and false if it is not.
|
boolean |
containsAll(int... source) |
Returns true if the all of the values specified in the source array are contained
in the IntIterable, and false if they are not.
|
boolean |
containsAll(IntIterable source) |
Returns true if the all of the values specified in the source IntIterable are contained
in the IntIterable, and false if they are not.
|
void |
each(IntProcedure procedure) |
A synonym for forEach.
|
IntIterator |
intIterator() |
Returns a primitive iterator that can be used to iterate over the IntIterable in an
imperative style.
|
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 |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
int[] |
toArray() |
Converts the IntIterable to a primitive int array.
|
MutableIntBag |
toBag() |
Converts the IntIterable to a new MutableIntBag.
|
MutableIntList |
toList() |
Converts the IntIterable to a new MutableIntList.
|
MutableIntSet |
toSet() |
Converts the IntIterable to a new MutableIntSet.
|
int[] |
toSortedArray() |
allSatisfy, anySatisfy, appendString, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, toSortedList, toString
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, select, summaryStatistics
public ReverseIntIterable(IntList newAdapted)
public static ReverseIntIterable adapt(IntList intList)
public IntIterator intIterator()
IntIterable
public void each(IntProcedure procedure)
IntIterable
public long sum()
sum
in interface IntIterable
sum
in class AbstractLazyIntIterable
public int max()
max
in interface IntIterable
max
in class AbstractLazyIntIterable
public int min()
min
in interface IntIterable
min
in class AbstractLazyIntIterable
public int minIfEmpty(int defaultValue)
minIfEmpty
in interface IntIterable
minIfEmpty
in class AbstractLazyIntIterable
public int maxIfEmpty(int defaultValue)
maxIfEmpty
in interface IntIterable
maxIfEmpty
in class AbstractLazyIntIterable
public double average()
average
in interface IntIterable
average
in class AbstractLazyIntIterable
public double median()
median
in interface IntIterable
median
in class AbstractLazyIntIterable
public int[] toSortedArray()
toSortedArray
in interface IntIterable
toSortedArray
in class AbstractLazyIntIterable
public int[] toArray()
IntIterable
toArray
in interface IntIterable
toArray
in class AbstractLazyIntIterable
public boolean contains(int value)
IntIterable
contains
in interface IntIterable
contains
in class AbstractLazyIntIterable
public boolean containsAll(int... source)
IntIterable
containsAll
in interface IntIterable
containsAll
in class AbstractLazyIntIterable
public boolean containsAll(IntIterable source)
IntIterable
containsAll
in interface IntIterable
containsAll
in class AbstractLazyIntIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyIntIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyIntIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyIntIterable
public MutableIntList toList()
IntIterable
toList
in interface IntIterable
toList
in class AbstractLazyIntIterable
public MutableIntSet toSet()
IntIterable
toSet
in interface IntIterable
toSet
in class AbstractLazyIntIterable
public MutableIntBag toBag()
IntIterable
toBag
in interface IntIterable
toBag
in class AbstractLazyIntIterable
public LazyIntIterable asLazy()
IntIterable
asLazy
in interface IntIterable
asLazy
in class AbstractLazyIntIterable
Copyright © 2004–2017. All rights reserved.