public class SynchronizedShortIterable extends Object implements ShortIterable, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(ShortPredicate predicate) |
boolean |
anySatisfy(ShortPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyShortIterable |
asLazy() |
double |
average() |
RichIterable<ShortIterable> |
chunk(int size) |
<V> RichIterable<V> |
collect(ShortToObjectFunction<? extends V> function) |
boolean |
contains(short value) |
boolean |
containsAll(short... source) |
boolean |
containsAll(ShortIterable source) |
boolean |
containsAny(short... source) |
boolean |
containsAny(ShortIterable source) |
boolean |
containsNone(short... source) |
boolean |
containsNone(ShortIterable source) |
int |
count(ShortPredicate predicate) |
short |
detectIfNone(ShortPredicate predicate,
short ifNone) |
void |
each(ShortProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
short |
max() |
short |
maxIfEmpty(short defaultValue) |
double |
median() |
short |
min() |
short |
minIfEmpty(short defaultValue) |
boolean |
noneSatisfy(ShortPredicate predicate) |
boolean |
notEmpty() |
static SynchronizedShortIterable |
of(ShortIterable iterable)
This method will take a ShortIterable and wrap it directly in a SynchronizedShortIterable.
|
static SynchronizedShortIterable |
of(ShortIterable iterable,
Object lock)
This method will take a ShortIterable and wrap it directly in a SynchronizedShortIterable.
|
long |
reduce(LongShortToLongFunction accumulator) |
long |
reduceIfEmpty(LongShortToLongFunction accumulator,
long defaultValue) |
ShortIterable |
reject(ShortPredicate predicate) |
ShortIterable |
select(ShortPredicate predicate) |
ShortIterator |
shortIterator()
Must be called in a synchronized block.
|
int |
size() |
long |
sum() |
short[] |
toArray() |
short[] |
toArray(short[] target) |
MutableShortBag |
toBag() |
MutableShortList |
toList() |
MutableShortSet |
toSet() |
short[] |
toSortedArray() |
MutableShortList |
toSortedList() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, tap, toSortedList, toSortedListBy, toSortedListBypublic static SynchronizedShortIterable of(ShortIterable iterable)
public static SynchronizedShortIterable of(ShortIterable iterable, Object lock)
public short[] toArray()
toArray in interface ShortIterablepublic short[] toArray(short[] target)
toArray in interface ShortIterablepublic boolean contains(short value)
contains in interface ShortIterablepublic boolean containsAll(short... source)
containsAll in interface ShortIterablepublic boolean containsAll(ShortIterable source)
containsAll in interface ShortIterablepublic boolean containsAny(short... source)
containsAny in interface ShortIterablepublic boolean containsAny(ShortIterable source)
containsAny in interface ShortIterablepublic boolean containsNone(short... source)
containsNone in interface ShortIterablepublic boolean containsNone(ShortIterable source)
containsNone in interface ShortIterablepublic void each(ShortProcedure procedure)
each in interface ShortIterablepublic ShortIterable select(ShortPredicate predicate)
select in interface ShortIterablepublic ShortIterable reject(ShortPredicate predicate)
reject in interface ShortIterablepublic <V> RichIterable<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface ShortIterablepublic 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 MutableShortList toList()
toList in interface ShortIterablepublic MutableShortSet toSet()
toSet in interface ShortIterablepublic MutableShortBag toBag()
toBag in interface ShortIterablepublic LazyShortIterable asLazy()
asLazy in interface ShortIterablepublic long sum()
sum in interface ShortIterablepublic short max()
max in interface ShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface ShortIterablepublic short min()
min in interface ShortIterablepublic short minIfEmpty(short defaultValue)
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 int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface ShortIterablepublic long reduce(LongShortToLongFunction accumulator)
reduce in interface ShortIterablepublic long reduceIfEmpty(LongShortToLongFunction accumulator, long defaultValue)
reduceIfEmpty in interface ShortIterablepublic RichIterable<ShortIterable> chunk(int size)
chunk in interface ShortIterablepublic String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic ShortIterator shortIterator()
shortIterator in interface ShortIterableCopyright © 2004–2022. All rights reserved.