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

public Interface ImmutableFloatObjectMap<V>

extends FloatObjectMap<V>, ImmutablePrimitiveObjectMap<V>
Imports
org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.block.predicate.primitive.FloatObjectPredicate

This file was automatically generated from template file immutablePrimitiveObjectMap.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public ImmutableObjectFloatMap<V>
flipUniqueValues()

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.flipUniqueValues.

Return the ObjectFloatMap that is obtained by flipping the direction of this map and making the associations from value to key.

public ImmutableFloatObjectMap<V>

Returns:

an immutable copy of this map with value associated with key
newWithKeyValue
(float
the key to add
key
,
V
the value to associate with the key in the copy
value
)

Copy this map, associate the value with the key (replacing the value if one already exists for key), and return the copy as new immutable map.

public ImmutableFloatObjectMap<V>

Returns:

an immutable copy of this map with all keys in keys removed
newWithoutAllKeys
(FloatIterable
the keys to remove
keys
)

Copy this map, remove any associated values with the specified keys (if any exist), and return the copy as a new immutable map.

public ImmutableFloatObjectMap<V>

Returns:

an immutable copy of this map with key removed
newWithoutKey
(float
the key to remove
key
)

Copy this map, remove any associated value with the key (if one exists), and return the copy as a new immutable map.

public ImmutableFloatObjectMap<V>
reject(FloatObjectPredicate<? super V> predicate)

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.reject.

Return a copy of this map containing only the key/value pairs that do not match the predicate.

public ImmutableFloatObjectMap<V>
select(FloatObjectPredicate<? super V> predicate)

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.select.

Return a copy of this map containing only the key/value pairs that match the predicate.

public ImmutableFloatObjectMap<V>
tap(Procedure<? super V> procedure)

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.tap, org.eclipse.collections.api.RichIterable.tap.

Executes the Procedure for each element in the iterable and returns this.

Inherited from org.eclipse.collections.api.map.primitive.FloatObjectMap:
containsKeyforEachKeyforEachKeyValuegetgetIfAbsentinjectIntoKeyValuekeySetkeysViewkeyValuesViewtoImmutable
Inherited from org.eclipse.collections.api.map.primitive.ImmutablePrimitiveObjectMap:
aggregateByaggregateInPlaceBycollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIfcollectIntcollectLongcollectShortcollectWithflatCollectflatCollectWithgroupBygroupByEachgroupByUniqueKeypartitionpartitionWithreduceByrejectrejectWithselectselectInstancesOfselectWithsumByDoublesumByFloatsumByIntsumByLongzipzipWithIndex

Method Detail

flipUniqueValuesback to summary
public ImmutableObjectFloatMap<V> flipUniqueValues()

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.flipUniqueValues.

Doc from org.eclipse.collections.api.map.primitive.FloatObjectMap.flipUniqueValues.

Return the ObjectFloatMap that is obtained by flipping the direction of this map and making the associations from value to key.

Annotations
@Override
newWithKeyValueback to summary
public ImmutableFloatObjectMap<V> newWithKeyValue(float key, V value)

Copy this map, associate the value with the key (replacing the value if one already exists for key), and return the copy as new immutable map. A copy is always made even if key is already associated with value.

Parameters
key:float

the key to add

value:V

the value to associate with the key in the copy

Returns:ImmutableFloatObjectMap<V>

an immutable copy of this map with value associated with key

newWithoutAllKeysback to summary
public ImmutableFloatObjectMap<V> newWithoutAllKeys(FloatIterable keys)

Copy this map, remove any associated values with the specified keys (if any exist), and return the copy as a new immutable map.

Parameters
keys:FloatIterable

the keys to remove

Returns:ImmutableFloatObjectMap<V>

an immutable copy of this map with all keys in keys removed

newWithoutKeyback to summary
public ImmutableFloatObjectMap<V> newWithoutKey(float key)

Copy this map, remove any associated value with the key (if one exists), and return the copy as a new immutable map.

Parameters
key:float

the key to remove

Returns:ImmutableFloatObjectMap<V>

an immutable copy of this map with key removed

rejectback to summary
public ImmutableFloatObjectMap<V> reject(FloatObjectPredicate<? super V> predicate)

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.reject.

Doc from org.eclipse.collections.api.map.primitive.FloatObjectMap.reject.

Return a copy of this map containing only the key/value pairs that do not match the predicate.

Annotations
@Override
selectback to summary
public ImmutableFloatObjectMap<V> select(FloatObjectPredicate<? super V> predicate)

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.select.

Doc from org.eclipse.collections.api.map.primitive.FloatObjectMap.select.

Return a copy of this map containing only the key/value pairs that match the predicate.

Annotations
@Override
tapback to summary
public ImmutableFloatObjectMap<V> tap(Procedure<? super V> procedure)

Redeclares org.eclipse.collections.api.map.primitive.FloatObjectMap.tap, org.eclipse.collections.api.RichIterable.tap.

Doc from org.eclipse.collections.api.RichIterable.tap.

Executes the Procedure for each element in the iterable and returns this.

Example using a Java 8 lambda expression:

RichIterable<Person> tapped =
    people.tap(person -> LOGGER.info(person.getName()));
Annotations
@Override