LazyShortIterable, PrimitiveIterable, ShortIterablepublic class ReverseShortIterable extends AbstractLazyShortIterable
ReverseIterable| Constructor | Description |
|---|---|
ReverseShortIterable(ShortList newAdapted) |
| Modifier and Type | Method | Description |
|---|---|---|
static ReverseShortIterable |
adapt(ShortList shortList) |
|
LazyShortIterable |
asLazy() |
Returns a LazyShortIterable adapter wrapping the source ShortIterable.
|
double |
average() |
|
boolean |
contains(short value) |
Returns true if the value is contained in the ShortIterable, and false if it is not.
|
boolean |
containsAll(short... source) |
Returns true if the all of the values specified in the source array are contained
in the ShortIterable, and false if they are not.
|
boolean |
containsAll(ShortIterable source) |
Returns true if the all of the values specified in the source ShortIterable are contained
in the ShortIterable, and false if they are not.
|
void |
each(ShortProcedure procedure) |
A synonym for forEach.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
short |
max() |
|
short |
maxIfEmpty(short defaultValue) |
|
double |
median() |
|
short |
min() |
|
short |
minIfEmpty(short defaultValue) |
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
ShortIterator |
shortIterator() |
Returns a primitive iterator that can be used to iterate over the ShortIterable in an
imperative style.
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
short[] |
toArray() |
Converts the ShortIterable to a primitive short array.
|
MutableShortBag |
toBag() |
Converts the ShortIterable to a new MutableShortBag.
|
MutableShortList |
toList() |
Converts the ShortIterable to a new MutableShortList.
|
MutableShortSet |
toSet() |
Converts the ShortIterable to a new MutableShortSet.
|
short[] |
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, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic ReverseShortIterable(ShortList newAdapted)
public static ReverseShortIterable adapt(ShortList shortList)
public ShortIterator shortIterator()
ShortIterablepublic void each(ShortProcedure procedure)
ShortIterablepublic long sum()
sum in interface ShortIterablesum in class AbstractLazyShortIterablepublic short max()
max in interface ShortIterablemax in class AbstractLazyShortIterablepublic short min()
min in interface ShortIterablemin in class AbstractLazyShortIterablepublic short minIfEmpty(short defaultValue)
minIfEmpty in interface ShortIterableminIfEmpty in class AbstractLazyShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface ShortIterablemaxIfEmpty in class AbstractLazyShortIterablepublic double average()
average in interface ShortIterableaverage in class AbstractLazyShortIterablepublic double median()
median in interface ShortIterablemedian in class AbstractLazyShortIterablepublic short[] toSortedArray()
toSortedArray in interface ShortIterabletoSortedArray in class AbstractLazyShortIterablepublic short[] toArray()
ShortIterabletoArray in interface ShortIterabletoArray in class AbstractLazyShortIterablepublic boolean contains(short value)
ShortIterablecontains in interface ShortIterablecontains in class AbstractLazyShortIterablepublic boolean containsAll(short... source)
ShortIterablecontainsAll in interface ShortIterablecontainsAll in class AbstractLazyShortIterablepublic boolean containsAll(ShortIterable source)
ShortIterablecontainsAll in interface ShortIterablecontainsAll in class AbstractLazyShortIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyShortIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyShortIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyShortIterablepublic MutableShortList toList()
ShortIterabletoList in interface ShortIterabletoList in class AbstractLazyShortIterablepublic MutableShortSet toSet()
ShortIterabletoSet in interface ShortIterabletoSet in class AbstractLazyShortIterablepublic MutableShortBag toBag()
ShortIterabletoBag in interface ShortIterabletoBag in class AbstractLazyShortIterablepublic LazyShortIterable asLazy()
ShortIterableasLazy in interface ShortIterableasLazy in class AbstractLazyShortIterableCopyright © 2004–2019. All rights reserved.