public abstract class AbstractLazyShortIterable extends Object implements LazyShortIterable
| Constructor and Description |
|---|
AbstractLazyShortIterable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(ShortPredicate predicate) |
boolean |
anySatisfy(ShortPredicate predicate) |
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. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyShortIterable |
asLazy() |
double |
average() |
<V> LazyIterable<V> |
collect(ShortToObjectFunction<? extends V> function) |
LazyBooleanIterable |
collectBoolean(ShortToBooleanFunction function) |
LazyByteIterable |
collectByte(ShortToByteFunction function) |
LazyCharIterable |
collectChar(ShortToCharFunction function) |
LazyDoubleIterable |
collectDouble(ShortToDoubleFunction function) |
LazyFloatIterable |
collectFloat(ShortToFloatFunction function) |
LazyIntIterable |
collectInt(ShortToIntFunction function) |
LazyLongIterable |
collectLong(ShortToLongFunction function) |
LazyShortIterable |
collectShort(ShortToShortFunction function) |
boolean |
contains(short value) |
boolean |
containsAll(short... source) |
boolean |
containsAll(ShortIterable source) |
int |
count(ShortPredicate predicate) |
short |
detectIfNone(ShortPredicate predicate,
short ifNone) |
void |
forEach(ShortProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function) |
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 |
max() |
short |
maxIfEmpty(short ifEmpty) |
double |
median() |
short |
min() |
short |
minIfEmpty(short ifEmpty) |
boolean |
noneSatisfy(ShortPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
LazyShortIterable |
reject(ShortPredicate predicate) |
LazyShortIterable |
select(ShortPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
short[] |
toArray() |
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, waiteach, shortIteratorpublic void forEach(ShortProcedure procedure)
forEach in interface ShortIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class Objectpublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic boolean contains(short value)
contains in interface ShortIterablepublic boolean containsAll(short... source)
containsAll in interface ShortIterablepublic boolean containsAll(ShortIterable source)
containsAll in interface ShortIterablepublic LazyShortIterable select(ShortPredicate predicate)
select in interface LazyShortIterableselect in interface ShortIterablepublic LazyShortIterable reject(ShortPredicate predicate)
reject in interface LazyShortIterablereject in interface ShortIterablepublic <V> LazyIterable<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface LazyShortIterablecollect in interface ShortIterablepublic LazyBooleanIterable collectBoolean(ShortToBooleanFunction function)
collectBoolean in interface LazyShortIterablepublic LazyByteIterable collectByte(ShortToByteFunction function)
collectByte in interface LazyShortIterablepublic LazyCharIterable collectChar(ShortToCharFunction function)
collectChar in interface LazyShortIterablepublic LazyShortIterable collectShort(ShortToShortFunction function)
collectShort in interface LazyShortIterablepublic LazyIntIterable collectInt(ShortToIntFunction function)
collectInt in interface LazyShortIterablepublic LazyFloatIterable collectFloat(ShortToFloatFunction function)
collectFloat in interface LazyShortIterablepublic LazyLongIterable collectLong(ShortToLongFunction function)
collectLong in interface LazyShortIterablepublic LazyDoubleIterable collectDouble(ShortToDoubleFunction function)
collectDouble in interface LazyShortIterablepublic short detectIfNone(ShortPredicate predicate, short ifNone)
detectIfNone in interface ShortIterablepublic int count(ShortPredicate predicate)
count in interface ShortIterablepublic boolean anySatisfy(ShortPredicate predicate)
anySatisfy in interface ShortIterablepublic boolean allSatisfy(ShortPredicate predicate)
allSatisfy in interface ShortIterablepublic boolean noneSatisfy(ShortPredicate predicate)
noneSatisfy in interface ShortIterablepublic <T> T injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface ShortIterablepublic short[] toArray()
toArray in interface ShortIterablepublic MutableShortList toList()
toList in interface ShortIterablepublic MutableShortSet toSet()
toSet in interface ShortIterablepublic MutableShortBag toBag()
toBag in interface ShortIterablepublic long sum()
sum in interface ShortIterablepublic short max()
max in interface ShortIterablepublic short maxIfEmpty(short ifEmpty)
maxIfEmpty in interface ShortIterablepublic short min()
min in interface ShortIterablepublic short minIfEmpty(short ifEmpty)
minIfEmpty 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()
asLazy in interface ShortIterableCopyright © 2004–2016. All rights reserved.