PrimitiveIterable, ShortIterableAbstractMutableShortValuesMap, AbstractShortSet, ShortArrayList, ShortHashBagpublic 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, waitappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeallSatisfy, 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, toArraypublic 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 PrimitiveIterabletoString in class java.lang.ObjectAbstractCollection.toString()public short minIfEmpty(short defaultValue)
minIfEmpty in interface ShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface ShortIterablepublic double average()
average in interface ShortIterablepublic double median()
median in interface ShortIterablepublic short[] toSortedArray()
toSortedArray in interface ShortIterablepublic MutableShortList toSortedList()
toSortedList in interface ShortIterablepublic LazyShortIterable asLazy()
ShortIterableasLazy in interface ShortIterablepublic MutableShortList toList()
ShortIterabletoList in interface ShortIterablepublic MutableShortSet toSet()
ShortIterabletoSet in interface ShortIterablepublic MutableShortBag toBag()
ShortIterabletoBag in interface ShortIterablepublic boolean containsAll(short... source)
ShortIterablecontainsAll in interface ShortIterablepublic boolean containsAll(ShortIterable source)
ShortIterablecontainsAll in interface ShortIterableCopyright © 2004–2017. All rights reserved.