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, select
public LazyLongIterableAdapter(LongIterable delegate)
public LongIterator longIterator()
public void each(LongProcedure procedure)
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyLongIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyLongIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyLongIterable
public int count(LongPredicate predicate)
count
in interface LongIterable
count
in class AbstractLazyLongIterable
public boolean anySatisfy(LongPredicate predicate)
anySatisfy
in interface LongIterable
anySatisfy
in class AbstractLazyLongIterable
public boolean allSatisfy(LongPredicate predicate)
allSatisfy
in interface LongIterable
allSatisfy
in class AbstractLazyLongIterable
public boolean noneSatisfy(LongPredicate predicate)
noneSatisfy
in interface LongIterable
noneSatisfy
in class AbstractLazyLongIterable
public long detectIfNone(LongPredicate predicate, long ifNone)
detectIfNone
in interface LongIterable
detectIfNone
in class AbstractLazyLongIterable
public long sum()
sum
in interface LongIterable
sum
in class AbstractLazyLongIterable
public long max()
max
in interface LongIterable
max
in class AbstractLazyLongIterable
public long min()
min
in interface LongIterable
min
in class AbstractLazyLongIterable
public long minIfEmpty(long defaultValue)
minIfEmpty
in interface LongIterable
minIfEmpty
in class AbstractLazyLongIterable
public long maxIfEmpty(long defaultValue)
maxIfEmpty
in interface LongIterable
maxIfEmpty
in class AbstractLazyLongIterable
public double average()
average
in interface LongIterable
average
in class AbstractLazyLongIterable
public double median()
median
in interface LongIterable
median
in class AbstractLazyLongIterable
public long[] toSortedArray()
toSortedArray
in interface LongIterable
toSortedArray
in class AbstractLazyLongIterable
public MutableLongList toSortedList()
toSortedList
in interface LongIterable
toSortedList
in class AbstractLazyLongIterable
public long[] toArray()
toArray
in interface LongIterable
toArray
in class AbstractLazyLongIterable
public String toString()
PrimitiveIterable
toString
in interface PrimitiveIterable
toString
in class AbstractLazyLongIterable
public String makeString()
PrimitiveIterable
PrimitiveIterable.makeString(String)
and defaulting
the separator parameter to the characters ", " (comma and space).makeString
in interface PrimitiveIterable
makeString
in class AbstractLazyLongIterable
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
makeString
in class AbstractLazyLongIterable
public String makeString(String start, String separator, String end)
PrimitiveIterable
makeString
in interface PrimitiveIterable
makeString
in class AbstractLazyLongIterable
public void appendString(Appendable appendable)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString()
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyLongIterable
public void appendString(Appendable appendable, String separator)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String)
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyLongIterable
public void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyLongIterable
public boolean contains(long value)
contains
in interface LongIterable
contains
in class AbstractLazyLongIterable
public boolean containsAll(long... source)
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
public boolean containsAll(LongIterable source)
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
public MutableLongList toList()
toList
in interface LongIterable
toList
in class AbstractLazyLongIterable
public MutableLongSet toSet()
toSet
in interface LongIterable
toSet
in class AbstractLazyLongIterable
public MutableLongBag toBag()
toBag
in interface LongIterable
toBag
in class AbstractLazyLongIterable
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto
in interface LongIterable
injectInto
in class AbstractLazyLongIterable
Copyright © 2004–2016. All rights reserved.