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, selectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsummaryStatisticspublic LazyIntIterableAdapter(IntIterable delegate)
public IntIterator intIterator()
public void each(IntProcedure procedure)
public int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyIntIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyIntIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyIntIterablepublic int count(IntPredicate predicate)
count in interface IntIterablecount in class AbstractLazyIntIterablepublic boolean anySatisfy(IntPredicate predicate)
anySatisfy in interface IntIterableanySatisfy in class AbstractLazyIntIterablepublic boolean allSatisfy(IntPredicate predicate)
allSatisfy in interface IntIterableallSatisfy in class AbstractLazyIntIterablepublic boolean noneSatisfy(IntPredicate predicate)
noneSatisfy in interface IntIterablenoneSatisfy in class AbstractLazyIntIterablepublic int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone in interface IntIterabledetectIfNone in class AbstractLazyIntIterablepublic long sum()
sum in interface IntIterablesum in class AbstractLazyIntIterablepublic int max()
max in interface IntIterablemax in class AbstractLazyIntIterablepublic int min()
min in interface IntIterablemin in class AbstractLazyIntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface IntIterableminIfEmpty in class AbstractLazyIntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface IntIterablemaxIfEmpty in class AbstractLazyIntIterablepublic double average()
average in interface IntIterableaverage in class AbstractLazyIntIterablepublic double median()
median in interface IntIterablemedian in class AbstractLazyIntIterablepublic int[] toSortedArray()
toSortedArray in interface IntIterabletoSortedArray in class AbstractLazyIntIterablepublic MutableIntList toSortedList()
toSortedList in interface IntIterabletoSortedList in class AbstractLazyIntIterablepublic int[] toArray()
toArray in interface IntIterabletoArray in class AbstractLazyIntIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class AbstractLazyIntIterablepublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablemakeString in class AbstractLazyIntIterablepublic 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 AbstractLazyIntIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablemakeString in class AbstractLazyIntIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterableappendString in class AbstractLazyIntIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterableappendString in class AbstractLazyIntIterablepublic 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 AbstractLazyIntIterablepublic boolean contains(int value)
contains in interface IntIterablecontains in class AbstractLazyIntIterablepublic boolean containsAll(int... source)
containsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic boolean containsAll(IntIterable source)
containsAll in interface IntIterablecontainsAll in class AbstractLazyIntIterablepublic MutableIntList toList()
toList in interface IntIterabletoList in class AbstractLazyIntIterablepublic MutableIntSet toSet()
toSet in interface IntIterabletoSet in class AbstractLazyIntIterablepublic MutableIntBag toBag()
toBag in interface IntIterabletoBag in class AbstractLazyIntIterablepublic <T> T injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterableinjectInto in class AbstractLazyIntIterableCopyright © 2004–2016. All rights reserved.