public class LazyIntIterableAdapter extends AbstractLazyIntIterable
Constructor and Description |
---|
LazyIntIterableAdapter(IntIterable delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(IntPredicate predicate) |
boolean |
anySatisfy(IntPredicate 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(int value) |
boolean |
containsAll(int... source) |
boolean |
containsAll(IntIterable source) |
int |
count(IntPredicate predicate) |
int |
detectIfNone(IntPredicate predicate,
int ifNone) |
void |
each(IntProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function) |
IntIterator |
intIterator() |
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 |
max() |
int |
maxIfEmpty(int defaultValue) |
double |
median() |
int |
min() |
int |
minIfEmpty(int defaultValue) |
boolean |
noneSatisfy(IntPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
int[] |
toArray() |
MutableIntBag |
toBag() |
MutableIntList |
toList() |
MutableIntSet |
toSet() |
int[] |
toSortedArray() |
MutableIntList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, forEach, reject, select
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
summaryStatistics
public LazyIntIterableAdapter(IntIterable delegate)
public IntIterator intIterator()
public void each(IntProcedure procedure)
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyIntIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyIntIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyIntIterable
public int count(IntPredicate predicate)
count
in interface IntIterable
count
in class AbstractLazyIntIterable
public boolean anySatisfy(IntPredicate predicate)
anySatisfy
in interface IntIterable
anySatisfy
in class AbstractLazyIntIterable
public boolean allSatisfy(IntPredicate predicate)
allSatisfy
in interface IntIterable
allSatisfy
in class AbstractLazyIntIterable
public boolean noneSatisfy(IntPredicate predicate)
noneSatisfy
in interface IntIterable
noneSatisfy
in class AbstractLazyIntIterable
public int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone
in interface IntIterable
detectIfNone
in class AbstractLazyIntIterable
public long sum()
sum
in interface IntIterable
sum
in class AbstractLazyIntIterable
public int max()
max
in interface IntIterable
max
in class AbstractLazyIntIterable
public int min()
min
in interface IntIterable
min
in class AbstractLazyIntIterable
public int minIfEmpty(int defaultValue)
minIfEmpty
in interface IntIterable
minIfEmpty
in class AbstractLazyIntIterable
public int maxIfEmpty(int defaultValue)
maxIfEmpty
in interface IntIterable
maxIfEmpty
in class AbstractLazyIntIterable
public double average()
average
in interface IntIterable
average
in class AbstractLazyIntIterable
public double median()
median
in interface IntIterable
median
in class AbstractLazyIntIterable
public int[] toSortedArray()
toSortedArray
in interface IntIterable
toSortedArray
in class AbstractLazyIntIterable
public MutableIntList toSortedList()
toSortedList
in interface IntIterable
toSortedList
in class AbstractLazyIntIterable
public int[] toArray()
toArray
in interface IntIterable
toArray
in class AbstractLazyIntIterable
public String toString()
PrimitiveIterable
toString
in interface PrimitiveIterable
toString
in class AbstractLazyIntIterable
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 AbstractLazyIntIterable
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 AbstractLazyIntIterable
public String makeString(String start, String separator, String end)
PrimitiveIterable
makeString
in interface PrimitiveIterable
makeString
in class AbstractLazyIntIterable
public void appendString(Appendable appendable)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString()
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyIntIterable
public void appendString(Appendable appendable, String separator)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String)
.appendString
in interface PrimitiveIterable
appendString
in class AbstractLazyIntIterable
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 AbstractLazyIntIterable
public boolean contains(int value)
contains
in interface IntIterable
contains
in class AbstractLazyIntIterable
public boolean containsAll(int... source)
containsAll
in interface IntIterable
containsAll
in class AbstractLazyIntIterable
public boolean containsAll(IntIterable source)
containsAll
in interface IntIterable
containsAll
in class AbstractLazyIntIterable
public MutableIntList toList()
toList
in interface IntIterable
toList
in class AbstractLazyIntIterable
public MutableIntSet toSet()
toSet
in interface IntIterable
toSet
in class AbstractLazyIntIterable
public MutableIntBag toBag()
toBag
in interface IntIterable
toBag
in class AbstractLazyIntIterable
public <T> T injectInto(T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto
in interface IntIterable
injectInto
in class AbstractLazyIntIterable
Copyright © 2004–2016. All rights reserved.