Top Description Methods
org.eclipse.collections.api.map.primitive

public Interface FloatValuesMap

extends FloatIterable
Known Direct Subinterfaces
org.eclipse.collections.api.map.primitive.FloatFloatMap, org.eclipse.collections.api.map.primitive.DoubleFloatMap, org.eclipse.collections.api.map.primitive.CharFloatMap, org.eclipse.collections.api.map.primitive.ShortFloatMap, org.eclipse.collections.api.map.primitive.ByteFloatMap, org.eclipse.collections.api.map.primitive.IntFloatMap, org.eclipse.collections.api.map.primitive.MutableFloatValuesMap, org.eclipse.collections.api.map.primitive.LongFloatMap
Imports
org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.bag.Bag, org.eclipse.collections.api.bag.primitive.FloatBag, org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatProcedure, org.eclipse.collections.api.collection.primitive.MutableFloatCollection

This file was automatically generated from template file primitiveValuesMap.stg.
Since
6.0.

Method Summary

Modifier and TypeMethod and Description
public <V> Bag<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.FloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public boolean

Returns:

if this collection contains the value
containsValue
(float
the value to test
value
)

Returns whether or not this map contains the value.

public void
forEachValue(FloatProcedure
the procedure to invoke for each value in this map.
procedure
)

Iterates through each value in this map.

public FloatBag
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

public FloatBag
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

public default FloatValuesMap
public MutableFloatCollection

Returns:

the values as a collection backed by this map
values
()

Returns the values in this map as a separate collection.

Inherited from org.eclipse.collections.api.FloatIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectfloatIteratorforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

collectback to summary
public <V> Bag<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.FloatIterable.collect.

Doc from org.eclipse.collections.api.FloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
containsValueback to summary
public boolean containsValue(float value)

Returns whether or not this map contains the value.

Parameters
value:float

the value to test

Returns:boolean

if this collection contains the value

forEachValueback to summary
public void forEachValue(FloatProcedure procedure)

Iterates through each value in this map.

Parameters
procedure:FloatProcedure

the procedure to invoke for each value in this map.

rejectback to summary
public FloatBag reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.reject.

Doc from org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public FloatBag select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.select.

Doc from org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

Annotations
@Override
tapback to summary
public default FloatValuesMap tap(FloatProcedure procedure)

Overrides default org.eclipse.collections.api.FloatIterable.tap.

Annotations
@Override
Since
9.0.
valuesback to summary
public MutableFloatCollection values()

Returns the values in this map as a separate collection. The returned collection is backed by the map, so any changes made to the returned collection will affect the state of this map.

Returns:MutableFloatCollection

the values as a collection backed by this map