Class AbstractShortIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
- All Implemented Interfaces:
PrimitiveIterable
,ShortIterable
- Direct Known Subclasses:
AbstractMutableShortValuesMap
,AbstractShortSet
,ShortArrayList
,ShortHashBag
public abstract class AbstractShortIterable extends Object implements ShortIterable
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
Constructors Constructor Description AbstractShortIterable()
-
Method Summary
Modifier and Type Method Description LazyShortIterable
asLazy()
Returns a LazyShortIterable adapter wrapping the source ShortIterable.double
average()
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.short
maxIfEmpty(short defaultValue)
double
median()
short
minIfEmpty(short defaultValue)
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()
MutableShortList
toSortedList()
String
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, count, detectIfNone, each, flatCollect, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, shortIterator, sum, summaryStatistics, tap, toArray, toArray
-
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:
AbstractCollection.toString()
-
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
-
containsAll
public boolean containsAll(short... source)Description copied from interface:ShortIterable
Returns 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:
containsAll
in interfaceShortIterable
-
containsAll
Description copied from interface:ShortIterable
Returns 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:
containsAll
in interfaceShortIterable
-