public class LazyLongIterableAdapter extends AbstractLazyLongIterable
| Constructor and Description |
|---|
LazyLongIterableAdapter(LongIterable delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
boolean |
anySatisfy(LongPredicate 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. |
double |
average() |
boolean |
contains(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(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()
Returns true if this iterable has zero items.
|
LongIterator |
longIterator() |
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.
|
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
long[] |
toArray() |
MutableLongBag |
toBag() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
MutableLongList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, forEach, reject, selectpublic LazyLongIterableAdapter(LongIterable delegate)
public LongIterator longIterator()
public void each(LongProcedure procedure)
public int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyLongIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyLongIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyLongIterablepublic int count(LongPredicate predicate)
count in interface LongIterablecount in class AbstractLazyLongIterablepublic boolean anySatisfy(LongPredicate predicate)
anySatisfy in interface LongIterableanySatisfy in class AbstractLazyLongIterablepublic boolean allSatisfy(LongPredicate predicate)
allSatisfy in interface LongIterableallSatisfy in class AbstractLazyLongIterablepublic boolean noneSatisfy(LongPredicate predicate)
noneSatisfy in interface LongIterablenoneSatisfy in class AbstractLazyLongIterablepublic long detectIfNone(LongPredicate predicate, long ifNone)
detectIfNone in interface LongIterabledetectIfNone in class AbstractLazyLongIterablepublic long sum()
sum in interface LongIterablesum in class AbstractLazyLongIterablepublic long max()
max in interface LongIterablemax in class AbstractLazyLongIterablepublic long min()
min in interface LongIterablemin in class AbstractLazyLongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface LongIterableminIfEmpty in class AbstractLazyLongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface LongIterablemaxIfEmpty in class AbstractLazyLongIterablepublic double average()
average in interface LongIterableaverage in class AbstractLazyLongIterablepublic double median()
median in interface LongIterablemedian in class AbstractLazyLongIterablepublic long[] toSortedArray()
toSortedArray in interface LongIterabletoSortedArray in class AbstractLazyLongIterablepublic MutableLongList toSortedList()
toSortedList in interface LongIterabletoSortedList in class AbstractLazyLongIterablepublic long[] toArray()
toArray in interface LongIterabletoArray in class AbstractLazyLongIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class AbstractLazyLongIterablepublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablemakeString in class AbstractLazyLongIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablemakeString in class AbstractLazyLongIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablemakeString in class AbstractLazyLongIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterableappendString in class AbstractLazyLongIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterableappendString in class AbstractLazyLongIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterableappendString in class AbstractLazyLongIterablepublic boolean contains(long value)
contains in interface LongIterablecontains in class AbstractLazyLongIterablepublic boolean containsAll(long... source)
containsAll in interface LongIterablecontainsAll in class AbstractLazyLongIterablepublic boolean containsAll(LongIterable source)
containsAll in interface LongIterablecontainsAll in class AbstractLazyLongIterablepublic MutableLongList toList()
toList in interface LongIterabletoList in class AbstractLazyLongIterablepublic MutableLongSet toSet()
toSet in interface LongIterabletoSet in class AbstractLazyLongIterablepublic MutableLongBag toBag()
toBag in interface LongIterabletoBag in class AbstractLazyLongIterablepublic <T> T injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface LongIterableinjectInto in class AbstractLazyLongIterableCopyright © 2004–2016. All rights reserved.