IntIterable, LazyIntIterable, PrimitiveIterablepublic 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, 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 ReverseIntIterable(IntList newAdapted)
public static ReverseIntIterable adapt(IntList intList)
public IntIterator intIterator()
IntIterablepublic void each(IntProcedure procedure)
IntIterablepublic long sum()
sum in interface IntIterablesum in class AbstractLazyIntIterablepublic int max()
max in interface IntIterablemax in class AbstractLazyIntIterablepublic int min()
min in interface IntIterablemin in class AbstractLazyIntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface IntIterableminIfEmpty in class AbstractLazyIntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface IntIterablemaxIfEmpty in class AbstractLazyIntIterablepublic double average()
average in interface IntIterableaverage in class AbstractLazyIntIterablepublic double median()
median in interface IntIterablemedian in class AbstractLazyIntIterablepublic int[] toSortedArray()
toSortedArray in interface IntIterabletoSortedArray in class AbstractLazyIntIterablepublic int[] toArray()
IntIterabletoArray in interface IntIterabletoArray in class AbstractLazyIntIterablepublic boolean contains(int value)
IntIterablecontains in interface IntIterablecontains in class AbstractLazyIntIterablepublic boolean containsAll(int... source)
IntIterablecontainsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic boolean containsAll(IntIterable source)
IntIterablecontainsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyIntIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyIntIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyIntIterablepublic MutableIntList toList()
IntIterabletoList in interface IntIterabletoList in class AbstractLazyIntIterablepublic MutableIntSet toSet()
IntIterabletoSet in interface IntIterabletoSet in class AbstractLazyIntIterablepublic MutableIntBag toBag()
IntIterabletoBag in interface IntIterabletoBag in class AbstractLazyIntIterablepublic LazyIntIterable asLazy()
IntIterableasLazy in interface IntIterableasLazy in class AbstractLazyIntIterableCopyright © 2004–2020. All rights reserved.