Class AbstractShortIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
- All Implemented Interfaces:
PrimitiveIterable
,ShortIterable
- Direct Known Subclasses:
AbstractMutableShortValuesMap
,AbstractShortSet
,ShortArrayList
,ShortHashBag
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasLazy()
Returns a LazyShortIterable adapter wrapping the source ShortIterable.double
average()
short
maxIfEmpty
(short defaultValue) double
median()
short
minIfEmpty
(short defaultValue) toBag()
Converts the ShortIterable to a new MutableShortBag.toList()
Converts the ShortIterable to a new MutableShortList.toSet()
Converts the ShortIterable to a new MutableShortSet.short[]
toString()
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
Methods inherited from interface org.eclipse.collections.api.ShortIterable
allSatisfy, anySatisfy, averageIfEmpty, chunk, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, shortIterator, sum, summaryStatistics, tap, toArray, toArray, toSortedList, toSortedListBy, toSortedListBy
-
Constructor Details
-
AbstractShortIterable
public AbstractShortIterable()
-
-
Method Details
-
toString
Description copied from interface:PrimitiveIterable
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
- Returns:
- a string representation of this PrimitiveIterable
- See Also:
-
minIfEmpty
public short minIfEmpty(short defaultValue) - Specified by:
minIfEmpty
in interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue) - Specified by:
maxIfEmpty
in interfaceShortIterable
-
average
public double average()- Specified by:
average
in interfaceShortIterable
-
median
public double median()- Specified by:
median
in interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArray
in interfaceShortIterable
-
toSortedList
- Specified by:
toSortedList
in interfaceShortIterable
-
asLazy
Description copied from interface:ShortIterable
Returns a LazyShortIterable adapter wrapping the source ShortIterable.- Specified by:
asLazy
in interfaceShortIterable
-
toList
Description copied from interface:ShortIterable
Converts the ShortIterable to a new MutableShortList.- Specified by:
toList
in interfaceShortIterable
-
toSet
Description copied from interface:ShortIterable
Converts the ShortIterable to a new MutableShortSet.- Specified by:
toSet
in interfaceShortIterable
-
toBag
Description copied from interface:ShortIterable
Converts the ShortIterable to a new MutableShortBag.- Specified by:
toBag
in interfaceShortIterable
-