FloatIterable, LazyFloatIterable, PrimitiveIterablepublic class LazyFloatIterableAdapter extends AbstractLazyFloatIterable
| Constructor | Description |
|---|---|
LazyFloatIterableAdapter(FloatIterable delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(FloatPredicate predicate) |
Returns true if all of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(FloatPredicate predicate) |
Returns true if any of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
void |
appendString(java.lang.Appendable appendable) |
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String separator) |
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Prints a string representation of this collection onto the given
Appendable. |
double |
average() |
|
boolean |
contains(float value) |
Returns true if the value is contained in the FloatIterable, and false if it is not.
|
boolean |
containsAll(float... source) |
Returns true if the all of the values specified in the source array are contained
in the FloatIterable, and false if they are not.
|
boolean |
containsAll(FloatIterable source) |
Returns true if the all of the values specified in the source FloatIterable are contained
in the FloatIterable, and false if they are not.
|
int |
count(FloatPredicate predicate) |
Returns a count of the number of elements in the FloatIterable that return true for the
specified predicate.
|
float |
detectIfNone(FloatPredicate predicate,
float ifNone) |
|
void |
each(FloatProcedure procedure) |
A synonym for forEach.
|
FloatIterator |
floatIterator() |
Returns a primitive iterator that can be used to iterate over the FloatIterable in an
imperative style.
|
<T> T |
injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
java.lang.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). |
java.lang.String |
makeString(java.lang.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). |
java.lang.String |
makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Returns a string representation of this collection with the elements separated by the specified
separator and enclosed between the start and end strings.
|
float |
max() |
|
float |
maxIfEmpty(float defaultValue) |
|
double |
median() |
|
float |
min() |
|
float |
minIfEmpty(float defaultValue) |
|
boolean |
noneSatisfy(FloatPredicate predicate) |
Returns true if none of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
double |
sum() |
|
float[] |
toArray() |
Converts the FloatIterable to a primitive float array.
|
MutableFloatBag |
toBag() |
Converts the FloatIterable to a new MutableFloatBag.
|
MutableFloatList |
toList() |
Converts the FloatIterable to a new MutableFloatList.
|
MutableFloatSet |
toSet() |
Converts the FloatIterable to a new MutableFloatSet.
|
float[] |
toSortedArray() |
|
MutableFloatList |
toSortedList() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, reject, select, tapaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatisticspublic LazyFloatIterableAdapter(FloatIterable delegate)
public FloatIterator floatIterator()
FloatIterablepublic void each(FloatProcedure procedure)
FloatIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyFloatIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyFloatIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyFloatIterablepublic int count(FloatPredicate predicate)
FloatIterablecount in interface FloatIterablecount in class AbstractLazyFloatIterablepublic boolean anySatisfy(FloatPredicate predicate)
FloatIterableanySatisfy in interface FloatIterableanySatisfy in class AbstractLazyFloatIterablepublic boolean allSatisfy(FloatPredicate predicate)
FloatIterableallSatisfy in interface FloatIterableallSatisfy in class AbstractLazyFloatIterablepublic boolean noneSatisfy(FloatPredicate predicate)
FloatIterablenoneSatisfy in interface FloatIterablenoneSatisfy in class AbstractLazyFloatIterablepublic float detectIfNone(FloatPredicate predicate, float ifNone)
detectIfNone in interface FloatIterabledetectIfNone in class AbstractLazyFloatIterablepublic double sum()
sum in interface FloatIterablesum in class AbstractLazyFloatIterablepublic float max()
max in interface FloatIterablemax in class AbstractLazyFloatIterablepublic float min()
min in interface FloatIterablemin in class AbstractLazyFloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface FloatIterableminIfEmpty in class AbstractLazyFloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface FloatIterablemaxIfEmpty in class AbstractLazyFloatIterablepublic double average()
average in interface FloatIterableaverage in class AbstractLazyFloatIterablepublic double median()
median in interface FloatIterablemedian in class AbstractLazyFloatIterablepublic float[] toSortedArray()
toSortedArray in interface FloatIterabletoSortedArray in class AbstractLazyFloatIterablepublic MutableFloatList toSortedList()
toSortedList in interface FloatIterabletoSortedList in class AbstractLazyFloatIterablepublic float[] toArray()
FloatIterabletoArray in interface FloatIterabletoArray in class AbstractLazyFloatIterablepublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface PrimitiveIterabletoString in class AbstractLazyFloatIterableAbstractCollection.toString()public java.lang.String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablemakeString in class AbstractLazyFloatIterablepublic java.lang.String makeString(java.lang.String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablemakeString in class AbstractLazyFloatIterablepublic java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterablemakeString in interface PrimitiveIterablemakeString in class AbstractLazyFloatIterablepublic void appendString(java.lang.Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterableappendString in class AbstractLazyFloatIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterableappendString in class AbstractLazyFloatIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterableappendString in class AbstractLazyFloatIterablepublic boolean contains(float value)
FloatIterablecontains in interface FloatIterablecontains in class AbstractLazyFloatIterablepublic boolean containsAll(float... source)
FloatIterablecontainsAll in interface FloatIterablecontainsAll in class AbstractLazyFloatIterablepublic boolean containsAll(FloatIterable source)
FloatIterablecontainsAll in interface FloatIterablecontainsAll in class AbstractLazyFloatIterablepublic MutableFloatList toList()
FloatIterabletoList in interface FloatIterabletoList in class AbstractLazyFloatIterablepublic MutableFloatSet toSet()
FloatIterabletoSet in interface FloatIterabletoSet in class AbstractLazyFloatIterablepublic MutableFloatBag toBag()
FloatIterabletoBag in interface FloatIterabletoBag in class AbstractLazyFloatIterablepublic <T> T injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface FloatIterableinjectInto in class AbstractLazyFloatIterableCopyright © 2004–2018. All rights reserved.