PrimitiveIterable
, ShortIterable
AbstractMutableShortValuesMap
, AbstractShortSet
, ShortArrayList
, ShortHashBag
public abstract class AbstractShortIterable extends java.lang.Object implements ShortIterable
Constructor | Description |
---|---|
AbstractShortIterable() |
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() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
allSatisfy, anySatisfy, averageIfEmpty, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, each, flatCollect, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reject, reject, select, select, shortIterator, sum, summaryStatistics, tap, toArray
public java.lang.String toString()
PrimitiveIterable
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());
toString
in interface PrimitiveIterable
toString
in class java.lang.Object
AbstractCollection.toString()
public short minIfEmpty(short defaultValue)
minIfEmpty
in interface ShortIterable
public short maxIfEmpty(short defaultValue)
maxIfEmpty
in interface ShortIterable
public double average()
average
in interface ShortIterable
public double median()
median
in interface ShortIterable
public short[] toSortedArray()
toSortedArray
in interface ShortIterable
public MutableShortList toSortedList()
toSortedList
in interface ShortIterable
public LazyShortIterable asLazy()
ShortIterable
asLazy
in interface ShortIterable
public MutableShortList toList()
ShortIterable
toList
in interface ShortIterable
public MutableShortSet toSet()
ShortIterable
toSet
in interface ShortIterable
public MutableShortBag toBag()
ShortIterable
toBag
in interface ShortIterable
public boolean containsAll(short... source)
ShortIterable
containsAll
in interface ShortIterable
public boolean containsAll(ShortIterable source)
ShortIterable
containsAll
in interface ShortIterable
Copyright © 2004–2017. All rights reserved.