public class LazyFloatIterableAdapter extends AbstractLazyFloatIterable
| Constructor and Description |
|---|
LazyFloatIterableAdapter(com.gs.collections.api.FloatIterable delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
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) |
boolean |
containsAll(float... source) |
boolean |
containsAll(com.gs.collections.api.FloatIterable source) |
int |
count(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
void |
each(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
com.gs.collections.api.iterator.FloatIterator |
floatIterator() |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.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.
|
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
float[] |
toArray() |
com.gs.collections.api.bag.primitive.MutableFloatBag |
toBag() |
com.gs.collections.api.list.primitive.MutableFloatList |
toList() |
com.gs.collections.api.set.primitive.MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
com.gs.collections.api.list.primitive.MutableFloatList |
toSortedList() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, forEach, reject, selectpublic LazyFloatIterableAdapter(com.gs.collections.api.FloatIterable delegate)
public com.gs.collections.api.iterator.FloatIterator floatIterator()
public void each(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
public int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablesize in class AbstractLazyFloatIterablepublic boolean isEmpty()
com.gs.collections.api.PrimitiveIterableisEmpty in interface com.gs.collections.api.PrimitiveIterableisEmpty in class AbstractLazyFloatIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractLazyFloatIterablepublic int count(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
count in interface com.gs.collections.api.FloatIterablecount in class AbstractLazyFloatIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface com.gs.collections.api.FloatIterableanySatisfy in class AbstractLazyFloatIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface com.gs.collections.api.FloatIterableallSatisfy in class AbstractLazyFloatIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface com.gs.collections.api.FloatIterablenoneSatisfy in class AbstractLazyFloatIterablepublic float detectIfNone(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface com.gs.collections.api.FloatIterabledetectIfNone in class AbstractLazyFloatIterablepublic double sum()
sum in interface com.gs.collections.api.FloatIterablesum in class AbstractLazyFloatIterablepublic float max()
max in interface com.gs.collections.api.FloatIterablemax in class AbstractLazyFloatIterablepublic float min()
min in interface com.gs.collections.api.FloatIterablemin in class AbstractLazyFloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface com.gs.collections.api.FloatIterableminIfEmpty in class AbstractLazyFloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface com.gs.collections.api.FloatIterablemaxIfEmpty in class AbstractLazyFloatIterablepublic double average()
average in interface com.gs.collections.api.FloatIterableaverage in class AbstractLazyFloatIterablepublic double median()
median in interface com.gs.collections.api.FloatIterablemedian in class AbstractLazyFloatIterablepublic float[] toSortedArray()
toSortedArray in interface com.gs.collections.api.FloatIterabletoSortedArray in class AbstractLazyFloatIterablepublic com.gs.collections.api.list.primitive.MutableFloatList toSortedList()
toSortedList in interface com.gs.collections.api.FloatIterabletoSortedList in class AbstractLazyFloatIterablepublic float[] toArray()
toArray in interface com.gs.collections.api.FloatIterabletoArray in class AbstractLazyFloatIterablepublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractLazyFloatIterablepublic java.lang.String makeString()
com.gs.collections.api.PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyFloatIterablepublic java.lang.String makeString(java.lang.String separator)
com.gs.collections.api.PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyFloatIterablepublic java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterablemakeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyFloatIterablepublic void appendString(java.lang.Appendable appendable)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyFloatIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String separator)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyFloatIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyFloatIterablepublic boolean contains(float value)
contains in interface com.gs.collections.api.FloatIterablecontains in class AbstractLazyFloatIterablepublic boolean containsAll(float... source)
containsAll in interface com.gs.collections.api.FloatIterablecontainsAll in class AbstractLazyFloatIterablepublic boolean containsAll(com.gs.collections.api.FloatIterable source)
containsAll in interface com.gs.collections.api.FloatIterablecontainsAll in class AbstractLazyFloatIterablepublic com.gs.collections.api.list.primitive.MutableFloatList toList()
toList in interface com.gs.collections.api.FloatIterabletoList in class AbstractLazyFloatIterablepublic com.gs.collections.api.set.primitive.MutableFloatSet toSet()
toSet in interface com.gs.collections.api.FloatIterabletoSet in class AbstractLazyFloatIterablepublic com.gs.collections.api.bag.primitive.MutableFloatBag toBag()
toBag in interface com.gs.collections.api.FloatIterabletoBag in class AbstractLazyFloatIterablepublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.FloatIterableinjectInto in class AbstractLazyFloatIterable