public class SynchronizedLongIterable extends Object implements LongIterable, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
boolean |
anySatisfy(LongPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyLongIterable |
asLazy() |
double |
average() |
RichIterable<LongIterable> |
chunk(int size) |
<V> RichIterable<V> |
collect(LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(LongIterable source) |
boolean |
containsAny(long... source) |
boolean |
containsAny(LongIterable source) |
boolean |
containsNone(long... source) |
boolean |
containsNone(LongIterable source) |
int |
count(LongPredicate predicate) |
long |
detectIfNone(LongPredicate predicate,
long ifNone) |
void |
each(LongProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
LongIterator |
longIterator()
Must be called in a synchronized block.
|
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty() |
static SynchronizedLongIterable |
of(LongIterable iterable)
This method will take a LongIterable and wrap it directly in a SynchronizedLongIterable.
|
static SynchronizedLongIterable |
of(LongIterable iterable,
Object lock)
This method will take a LongIterable and wrap it directly in a SynchronizedLongIterable.
|
long |
reduce(LongLongToLongFunction accumulator) |
long |
reduceIfEmpty(LongLongToLongFunction accumulator,
long defaultValue) |
LongIterable |
reject(LongPredicate predicate) |
LongIterable |
select(LongPredicate predicate) |
int |
size() |
long |
sum() |
long[] |
toArray() |
long[] |
toArray(long[] target) |
MutableLongBag |
toBag() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
MutableLongList |
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 SynchronizedLongIterable of(LongIterable iterable)
public static SynchronizedLongIterable of(LongIterable iterable, Object lock)
public long[] toArray()
toArray in interface LongIterablepublic long[] toArray(long[] target)
toArray in interface LongIterablepublic boolean contains(long value)
contains in interface LongIterablepublic boolean containsAll(long... source)
containsAll in interface LongIterablepublic boolean containsAll(LongIterable source)
containsAll in interface LongIterablepublic boolean containsAny(long... source)
containsAny in interface LongIterablepublic boolean containsAny(LongIterable source)
containsAny in interface LongIterablepublic boolean containsNone(long... source)
containsNone in interface LongIterablepublic boolean containsNone(LongIterable source)
containsNone in interface LongIterablepublic void each(LongProcedure procedure)
each in interface LongIterablepublic LongIterable select(LongPredicate predicate)
select in interface LongIterablepublic LongIterable reject(LongPredicate predicate)
reject in interface LongIterablepublic <V> RichIterable<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongIterablepublic long detectIfNone(LongPredicate predicate, long ifNone)
detectIfNone in interface LongIterablepublic int count(LongPredicate predicate)
count in interface LongIterablepublic boolean anySatisfy(LongPredicate predicate)
anySatisfy in interface LongIterablepublic boolean allSatisfy(LongPredicate predicate)
allSatisfy in interface LongIterablepublic boolean noneSatisfy(LongPredicate predicate)
noneSatisfy in interface LongIterablepublic MutableLongList toList()
toList in interface LongIterablepublic MutableLongSet toSet()
toSet in interface LongIterablepublic MutableLongBag toBag()
toBag in interface LongIterablepublic LazyLongIterable asLazy()
asLazy in interface LongIterablepublic long sum()
sum in interface LongIterablepublic long max()
max in interface LongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface LongIterablepublic long min()
min in interface LongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface LongIterablepublic double average()
average in interface LongIterablepublic double median()
median in interface LongIterablepublic long[] toSortedArray()
toSortedArray in interface LongIterablepublic MutableLongList toSortedList()
toSortedList in interface LongIterablepublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface LongIterablepublic long reduce(LongLongToLongFunction accumulator)
reduce in interface LongIterablepublic long reduceIfEmpty(LongLongToLongFunction accumulator, long defaultValue)
reduceIfEmpty in interface LongIterablepublic RichIterable<LongIterable> chunk(int size)
chunk in interface LongIterablepublic 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 LongIterator longIterator()
longIterator in interface LongIterableCopyright © 2004–2022. All rights reserved.