public abstract class AbstractShortIterable extends Object implements ShortIterable
Constructor and Description |
---|
AbstractShortIterable() |
Modifier and Type | Method and Description |
---|---|
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable . |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable . |
LazyShortIterable |
asLazy() |
double |
average() |
boolean |
containsAll(short... source) |
boolean |
containsAll(ShortIterable source) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
short |
maxIfEmpty(short defaultValue) |
double |
median() |
short |
minIfEmpty(short defaultValue) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableShortBag |
toBag() |
MutableShortList |
toList() |
MutableShortSet |
toSet() |
short[] |
toSortedArray() |
MutableShortList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
allSatisfy, anySatisfy, collect, contains, count, detectIfNone, each, forEach, injectInto, max, min, noneSatisfy, reject, select, shortIterator, sum, toArray
appendString, size
public String toString()
PrimitiveIterable
toString
in interface PrimitiveIterable
toString
in class Object
public String makeString()
PrimitiveIterable
PrimitiveIterable.makeString(String)
and defaulting
the separator parameter to the characters ", " (comma and space).makeString
in interface PrimitiveIterable
public String makeString(String separator)
PrimitiveIterable
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString
in interface PrimitiveIterable
public String makeString(String start, String separator, String end)
PrimitiveIterable
makeString
in interface PrimitiveIterable
public void appendString(Appendable appendable)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString()
.appendString
in interface PrimitiveIterable
public void appendString(Appendable appendable, String separator)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String)
.appendString
in interface PrimitiveIterable
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()
asLazy
in interface ShortIterable
public MutableShortList toList()
toList
in interface ShortIterable
public MutableShortSet toSet()
toSet
in interface ShortIterable
public MutableShortBag toBag()
toBag
in interface ShortIterable
public boolean containsAll(short... source)
containsAll
in interface ShortIterable
public boolean containsAll(ShortIterable source)
containsAll
in interface ShortIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
Copyright © 2004–2016. All rights reserved.