public abstract class AbstractIntIterable extends Object implements IntIterable
Constructor and Description |
---|
AbstractIntIterable() |
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 . |
LazyIntIterable |
asLazy() |
double |
average() |
boolean |
containsAll(int... source) |
boolean |
containsAll(IntIterable 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.
|
int |
maxIfEmpty(int defaultValue) |
double |
median() |
int |
minIfEmpty(int defaultValue) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableIntBag |
toBag() |
MutableIntList |
toList() |
MutableIntSet |
toSet() |
int[] |
toSortedArray() |
MutableIntList |
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, intIterator, 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 int minIfEmpty(int defaultValue)
minIfEmpty
in interface IntIterable
public int maxIfEmpty(int defaultValue)
maxIfEmpty
in interface IntIterable
public double average()
average
in interface IntIterable
public double median()
median
in interface IntIterable
public int[] toSortedArray()
toSortedArray
in interface IntIterable
public MutableIntList toSortedList()
toSortedList
in interface IntIterable
public LazyIntIterable asLazy()
asLazy
in interface IntIterable
public MutableIntList toList()
toList
in interface IntIterable
public MutableIntSet toSet()
toSet
in interface IntIterable
public MutableIntBag toBag()
toBag
in interface IntIterable
public boolean containsAll(int... source)
containsAll
in interface IntIterable
public boolean containsAll(IntIterable source)
containsAll
in interface IntIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
Copyright © 2004–2016. All rights reserved.