FloatIterable
, FloatValuesMap
, MutableFloatValuesMap
, PrimitiveIterable
ByteFloatHashMap
, CharFloatHashMap
, DoubleFloatHashMap
, FloatFloatHashMap
, IntFloatHashMap
, LongFloatHashMap
, ShortFloatHashMap
public 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(Appendable appendable,
String start,
String separator,
String end) |
Prints a string representation of this collection onto the given
Appendable . |
<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, toString
asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList
values
clear, floatIterator
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(float value)
FloatIterable
contains
in interface FloatIterable
public boolean containsAll(FloatIterable source)
FloatIterable
containsAll
in interface FloatIterable
containsAll
in class AbstractFloatIterable
public float max()
max
in interface FloatIterable
public float min()
min
in interface FloatIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
public void forEach(FloatProcedure procedure)
FloatIterable
forEach
in interface FloatIterable
public void each(FloatProcedure procedure)
FloatIterable
each
in interface FloatIterable
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
public float[] toArray()
FloatIterable
toArray
in interface FloatIterable
public MutableFloatBag select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
select
in interface FloatValuesMap
select
in interface MutableFloatValuesMap
public MutableFloatBag reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
reject
in interface FloatValuesMap
reject
in interface MutableFloatValuesMap
public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
collect
in interface FloatValuesMap
collect
in interface MutableFloatValuesMap
public float detectIfNone(FloatPredicate predicate, float value)
detectIfNone
in interface FloatIterable
public int count(FloatPredicate predicate)
FloatIterable
count
in interface FloatIterable
public boolean anySatisfy(FloatPredicate predicate)
FloatIterable
anySatisfy
in interface FloatIterable
public boolean allSatisfy(FloatPredicate predicate)
FloatIterable
allSatisfy
in interface FloatIterable
public boolean noneSatisfy(FloatPredicate predicate)
FloatIterable
noneSatisfy
in interface FloatIterable
public double sum()
sum
in interface FloatIterable
public boolean containsValue(float value)
containsValue
in interface FloatValuesMap
public void forEachValue(FloatProcedure procedure)
forEachValue
in interface FloatValuesMap
Copyright © 2004–2017. All rights reserved.