Class ReverseShortIterable
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable
-
- org.eclipse.collections.impl.lazy.primitive.ReverseShortIterable
-
- All Implemented Interfaces:
LazyShortIterable
,PrimitiveIterable
,ShortIterable
public class ReverseShortIterable extends AbstractLazyShortIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.- Since:
- 5.0.
- See Also:
ReverseIterable
-
-
Constructor Summary
Constructors Constructor Description ReverseShortIterable(ShortList newAdapted)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReverseShortIterable
adapt(ShortList shortList)
LazyShortIterable
asLazy()
double
average()
boolean
contains(short value)
boolean
containsAll(short... source)
boolean
containsAll(ShortIterable source)
void
each(ShortProcedure procedure)
boolean
isEmpty()
short
max()
short
maxIfEmpty(short defaultValue)
double
median()
short
min()
short
minIfEmpty(short defaultValue)
boolean
notEmpty()
ShortIterator
shortIterator()
int
size()
long
sum()
short[]
toArray()
MutableShortBag
toBag()
MutableShortList
toList()
MutableShortSet
toSet()
short[]
toSortedArray()
-
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyShortIterable
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.ShortIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
-
-
-
Constructor Detail
-
ReverseShortIterable
public ReverseShortIterable(ShortList newAdapted)
-
-
Method Detail
-
adapt
public static ReverseShortIterable adapt(ShortList shortList)
-
shortIterator
public ShortIterator shortIterator()
-
each
public void each(ShortProcedure procedure)
- Since:
- 7.0.
-
sum
public long sum()
- Specified by:
sum
in interfaceShortIterable
- Overrides:
sum
in classAbstractLazyShortIterable
-
max
public short max()
- Specified by:
max
in interfaceShortIterable
- Overrides:
max
in classAbstractLazyShortIterable
-
min
public short min()
- Specified by:
min
in interfaceShortIterable
- Overrides:
min
in classAbstractLazyShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)
- Specified by:
minIfEmpty
in interfaceShortIterable
- Overrides:
minIfEmpty
in classAbstractLazyShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)
- Specified by:
maxIfEmpty
in interfaceShortIterable
- Overrides:
maxIfEmpty
in classAbstractLazyShortIterable
-
average
public double average()
- Specified by:
average
in interfaceShortIterable
- Overrides:
average
in classAbstractLazyShortIterable
-
median
public double median()
- Specified by:
median
in interfaceShortIterable
- Overrides:
median
in classAbstractLazyShortIterable
-
toSortedArray
public short[] toSortedArray()
- Specified by:
toSortedArray
in interfaceShortIterable
- Overrides:
toSortedArray
in classAbstractLazyShortIterable
-
toArray
public short[] toArray()
- Specified by:
toArray
in interfaceShortIterable
- Overrides:
toArray
in classAbstractLazyShortIterable
-
contains
public boolean contains(short value)
- Specified by:
contains
in interfaceShortIterable
- Overrides:
contains
in classAbstractLazyShortIterable
-
containsAll
public boolean containsAll(short... source)
- Specified by:
containsAll
in interfaceShortIterable
- Overrides:
containsAll
in classAbstractLazyShortIterable
-
containsAll
public boolean containsAll(ShortIterable source)
- Specified by:
containsAll
in interfaceShortIterable
- Overrides:
containsAll
in classAbstractLazyShortIterable
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyShortIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyShortIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyShortIterable
-
toList
public MutableShortList toList()
- Specified by:
toList
in interfaceShortIterable
- Overrides:
toList
in classAbstractLazyShortIterable
-
toSet
public MutableShortSet toSet()
- Specified by:
toSet
in interfaceShortIterable
- Overrides:
toSet
in classAbstractLazyShortIterable
-
toBag
public MutableShortBag toBag()
- Specified by:
toBag
in interfaceShortIterable
- Overrides:
toBag
in classAbstractLazyShortIterable
-
asLazy
public LazyShortIterable asLazy()
- Specified by:
asLazy
in interfaceShortIterable
- Overrides:
asLazy
in classAbstractLazyShortIterable
-
-