public abstract class AbstractLongIterable extends Object implements LongIterable
Constructor and Description |
---|
AbstractLongIterable() |
Modifier and Type | Method and Description |
---|---|
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 . |
LazyLongIterable |
asLazy() |
double |
average() |
boolean |
containsAll(long... source) |
boolean |
containsAll(LongIterable source) |
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.
|
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
minIfEmpty(long defaultValue) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableLongBag |
toBag() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
MutableLongList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
allSatisfy, anySatisfy, collect, contains, count, detectIfNone, each, forEach, injectInto, longIterator, max, min, noneSatisfy, reject, select, sum, toArray
appendString, size
public String toString()
PrimitiveIterable
toString
in interface PrimitiveIterable
toString
in class Object
public String makeString()
PrimitiveIterable
PrimitiveIterable.makeString(String)
and defaulting
the separator parameter to the characters ", " (comma and space).makeString
in interface PrimitiveIterable
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
public String makeString(String start, String separator, String end)
PrimitiveIterable
makeString
in interface PrimitiveIterable
public void appendString(Appendable appendable)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString()
.appendString
in interface PrimitiveIterable
public void appendString(Appendable appendable, String separator)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String)
.appendString
in interface PrimitiveIterable
public long minIfEmpty(long defaultValue)
minIfEmpty
in interface LongIterable
public long maxIfEmpty(long defaultValue)
maxIfEmpty
in interface LongIterable
public double average()
average
in interface LongIterable
public double median()
median
in interface LongIterable
public long[] toSortedArray()
toSortedArray
in interface LongIterable
public MutableLongList toSortedList()
toSortedList
in interface LongIterable
public LazyLongIterable asLazy()
asLazy
in interface LongIterable
public MutableLongList toList()
toList
in interface LongIterable
public MutableLongSet toSet()
toSet
in interface LongIterable
public MutableLongBag toBag()
toBag
in interface LongIterable
public boolean containsAll(long... source)
containsAll
in interface LongIterable
public boolean containsAll(LongIterable source)
containsAll
in interface LongIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
Copyright © 2004–2016. All rights reserved.