FloatIterable, FloatValuesMap, MutableFloatValuesMap, PrimitiveIterableByteFloatHashMap, CharFloatHashMap, DoubleFloatHashMap, FloatFloatHashMap, IntFloatHashMap, LongFloatHashMap, ShortFloatHashMappublic abstract class AbstractMutableFloatValuesMap extends AbstractFloatIterable implements MutableFloatValuesMap
| Constructor | Description |
|---|---|
AbstractMutableFloatValuesMap() |
| 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,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Prints a string representation of this collection onto the given
Appendable. |
RichIterable<FloatIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
<V> MutableBag<V> |
collect(FloatToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
contains(float value) |
Returns true if the value is contained in the FloatIterable, and false if it is 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.
|
boolean |
containsValue(float value) |
|
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 value) |
|
void |
each(FloatProcedure procedure) |
A synonym for forEach.
|
void |
forEach(FloatProcedure procedure) |
Applies the FloatProcedure to each element in the FloatIterable.
|
void |
forEachValue(FloatProcedure procedure) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
float |
max() |
|
float |
min() |
|
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()
|
MutableFloatBag |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
MutableFloatBag |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
double |
sum() |
|
float[] |
toArray() |
Converts the FloatIterable to a primitive float array.
|
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringasLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedListtap, valuesclear, floatIteratorequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendString, appendString, makeString, makeString, makeString, toStringpublic boolean contains(float value)
FloatIterablecontains in interface FloatIterablepublic boolean containsAll(FloatIterable source)
FloatIterablecontainsAll in interface FloatIterablecontainsAll in class AbstractFloatIterablepublic float max()
max in interface FloatIterablepublic float min()
min in interface FloatIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void forEach(FloatProcedure procedure)
FloatIterableforEach in interface FloatIterablepublic void each(FloatProcedure procedure)
FloatIterableeach in interface FloatIterablepublic 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 PrimitiveIterablepublic float[] toArray()
FloatIterabletoArray in interface FloatIterablepublic MutableFloatBag select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface FloatValuesMapselect in interface MutableFloatValuesMappublic MutableFloatBag reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface FloatValuesMapreject in interface MutableFloatValuesMappublic <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface FloatValuesMapcollect in interface MutableFloatValuesMappublic float detectIfNone(FloatPredicate predicate, float value)
detectIfNone in interface FloatIterablepublic int count(FloatPredicate predicate)
FloatIterablecount in interface FloatIterablepublic boolean anySatisfy(FloatPredicate predicate)
FloatIterableanySatisfy in interface FloatIterablepublic boolean allSatisfy(FloatPredicate predicate)
FloatIterableallSatisfy in interface FloatIterablepublic boolean noneSatisfy(FloatPredicate predicate)
FloatIterablenoneSatisfy in interface FloatIterablepublic RichIterable<FloatIterable> chunk(int size)
FloatIterablechunk in interface FloatIterablesize - the number of elements per chunkRichIterable containing FloatIterables of size size, except the last will be
truncated if the elements don't divide evenly.public double sum()
sum in interface FloatIterablepublic boolean containsValue(float value)
containsValue in interface FloatValuesMappublic void forEachValue(FloatProcedure procedure)
forEachValue in interface FloatValuesMapCopyright © 2004–2018. All rights reserved.