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
Modifier and Type Method Description static ReverseShortIterableadapt(ShortList shortList)LazyShortIterableasLazy()Returns a LazyShortIterable adapter wrapping the source ShortIterable.doubleaverage()booleancontains(short value)Returns true if the value is contained in the ShortIterable, and false if it is not.booleancontainsAll(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.booleancontainsAll(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.voideach(ShortProcedure procedure)A synonym for forEach.booleanisEmpty()Returns true if this iterable has zero items.shortmax()shortmaxIfEmpty(short defaultValue)doublemedian()shortmin()shortminIfEmpty(short defaultValue)booleannotEmpty()The English equivalent of !this.isEmpty()ShortIteratorshortIterator()Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.intsize()Returns the number of items in this iterable.longsum()short[]toArray()Converts the ShortIterable to a primitive short array.MutableShortBagtoBag()Converts the ShortIterable to a new MutableShortBag.MutableShortListtoList()Converts the ShortIterable to a new MutableShortList.MutableShortSettoSet()Converts the ShortIterable to a new MutableShortSet.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, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ShortIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
adapt
-
shortIterator
Description copied from interface:ShortIterableReturns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style. -
each
Description copied from interface:ShortIterableA synonym for forEach.- Since:
- 7.0.
-
sum
public long sum()- Specified by:
sumin interfaceShortIterable- Overrides:
sumin classAbstractLazyShortIterable
-
max
public short max()- Specified by:
maxin interfaceShortIterable- Overrides:
maxin classAbstractLazyShortIterable
-
min
public short min()- Specified by:
minin interfaceShortIterable- Overrides:
minin classAbstractLazyShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue)- Specified by:
minIfEmptyin interfaceShortIterable- Overrides:
minIfEmptyin classAbstractLazyShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue)- Specified by:
maxIfEmptyin interfaceShortIterable- Overrides:
maxIfEmptyin classAbstractLazyShortIterable
-
average
public double average()- Specified by:
averagein interfaceShortIterable- Overrides:
averagein classAbstractLazyShortIterable
-
median
public double median()- Specified by:
medianin interfaceShortIterable- Overrides:
medianin classAbstractLazyShortIterable
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArrayin interfaceShortIterable- Overrides:
toSortedArrayin classAbstractLazyShortIterable
-
toArray
public short[] toArray()Description copied from interface:ShortIterableConverts the ShortIterable to a primitive short array.- Specified by:
toArrayin interfaceShortIterable- Overrides:
toArrayin classAbstractLazyShortIterable
-
contains
public boolean contains(short value)Description copied from interface:ShortIterableReturns true if the value is contained in the ShortIterable, and false if it is not.- Specified by:
containsin interfaceShortIterable- Overrides:
containsin classAbstractLazyShortIterable
-
containsAll
public boolean containsAll(short... source)Description copied from interface:ShortIterableReturns true if the all of the values specified in the source array are contained in the ShortIterable, and false if they are not.- Specified by:
containsAllin interfaceShortIterable- Overrides:
containsAllin classAbstractLazyShortIterable
-
containsAll
Description copied from interface:ShortIterableReturns true if the all of the values specified in the source ShortIterable are contained in the ShortIterable, and false if they are not.- Specified by:
containsAllin interfaceShortIterable- Overrides:
containsAllin classAbstractLazyShortIterable
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyShortIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyShortIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyShortIterable
-
toList
Description copied from interface:ShortIterableConverts the ShortIterable to a new MutableShortList.- Specified by:
toListin interfaceShortIterable- Overrides:
toListin classAbstractLazyShortIterable
-
toSet
Description copied from interface:ShortIterableConverts the ShortIterable to a new MutableShortSet.- Specified by:
toSetin interfaceShortIterable- Overrides:
toSetin classAbstractLazyShortIterable
-
toBag
Description copied from interface:ShortIterableConverts the ShortIterable to a new MutableShortBag.- Specified by:
toBagin interfaceShortIterable- Overrides:
toBagin classAbstractLazyShortIterable
-
asLazy
Description copied from interface:ShortIterableReturns a LazyShortIterable adapter wrapping the source ShortIterable.- Specified by:
asLazyin interfaceShortIterable- Overrides:
asLazyin classAbstractLazyShortIterable
-