LazyShortIterable
, PrimitiveIterable
, ShortIterable
public 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, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public ReverseShortIterable(ShortList newAdapted)
public static ReverseShortIterable adapt(ShortList shortList)
public ShortIterator shortIterator()
ShortIterable
public void each(ShortProcedure procedure)
ShortIterable
public long sum()
sum
in interface ShortIterable
sum
in class AbstractLazyShortIterable
public short max()
max
in interface ShortIterable
max
in class AbstractLazyShortIterable
public short min()
min
in interface ShortIterable
min
in class AbstractLazyShortIterable
public short minIfEmpty(short defaultValue)
minIfEmpty
in interface ShortIterable
minIfEmpty
in class AbstractLazyShortIterable
public short maxIfEmpty(short defaultValue)
maxIfEmpty
in interface ShortIterable
maxIfEmpty
in class AbstractLazyShortIterable
public double average()
average
in interface ShortIterable
average
in class AbstractLazyShortIterable
public double median()
median
in interface ShortIterable
median
in class AbstractLazyShortIterable
public short[] toSortedArray()
toSortedArray
in interface ShortIterable
toSortedArray
in class AbstractLazyShortIterable
public short[] toArray()
ShortIterable
toArray
in interface ShortIterable
toArray
in class AbstractLazyShortIterable
public boolean contains(short value)
ShortIterable
contains
in interface ShortIterable
contains
in class AbstractLazyShortIterable
public boolean containsAll(short... source)
ShortIterable
containsAll
in interface ShortIterable
containsAll
in class AbstractLazyShortIterable
public boolean containsAll(ShortIterable source)
ShortIterable
containsAll
in interface ShortIterable
containsAll
in class AbstractLazyShortIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyShortIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyShortIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyShortIterable
public MutableShortList toList()
ShortIterable
toList
in interface ShortIterable
toList
in class AbstractLazyShortIterable
public MutableShortSet toSet()
ShortIterable
toSet
in interface ShortIterable
toSet
in class AbstractLazyShortIterable
public MutableShortBag toBag()
ShortIterable
toBag
in interface ShortIterable
toBag
in class AbstractLazyShortIterable
public LazyShortIterable asLazy()
ShortIterable
asLazy
in interface ShortIterable
asLazy
in class AbstractLazyShortIterable
Copyright © 2004–2019. All rights reserved.