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

public Interface ImmutableDoubleObjectMap<V>

extends DoubleObjectMap<V>, ImmutablePrimitiveObjectMap<V>
Imports
org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.block.predicate.primitive.DoubleObjectPredicate

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

Method Summary

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

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

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

public ImmutableDoubleObjectMap<V>

Returns:

an immutable copy of this map with value associated with key
newWithKeyValue
(double
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 ImmutableDoubleObjectMap<V>

Returns:

an immutable copy of this map with all keys in keys removed
newWithoutAllKeys
(DoubleIterable
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 ImmutableDoubleObjectMap<V>

Returns:

an immutable copy of this map with key removed
newWithoutKey
(double
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 ImmutableDoubleObjectMap<V>
reject(DoubleObjectPredicate<? super V> predicate)

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

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

public ImmutableDoubleObjectMap<V>
select(DoubleObjectPredicate<? super V> predicate)

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

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

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

Redeclares org.eclipse.collections.api.map.primitive.DoubleObjectMap.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.DoubleObjectMap:
containsKeyforEachKeyforEachKeyValuegetgetIfAbsentinjectIntoKeyValuekeySetkeysViewkeyValuesViewtoImmutable
Inherited from org.eclipse.collections.api.map.primitive.ImmutablePrimitiveObjectMap:
aggregateByaggregateInPlaceBycollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIfcollectIntcollectLongcollectShortcollectWithflatCollectflatCollectWithgroupBygroupByEachgroupByUniqueKeypartitionpartitionWithreduceByrejectrejectWithselectselectInstancesOfselectWithsumByDoublesumByFloatsumByIntsumByLongzipzipWithIndex

Method Detail

flipUniqueValuesback to summary
public ImmutableObjectDoubleMap<V> flipUniqueValues()

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

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

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

Annotations
@Override
newWithKeyValueback to summary
public ImmutableDoubleObjectMap<V> newWithKeyValue(double 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:double

the key to add

value:V

the value to associate with the key in the copy

Returns:ImmutableDoubleObjectMap<V>

an immutable copy of this map with value associated with key

newWithoutAllKeysback to summary
public ImmutableDoubleObjectMap<V> newWithoutAllKeys(DoubleIterable 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:DoubleIterable

the keys to remove

Returns:ImmutableDoubleObjectMap<V>

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

newWithoutKeyback to summary
public ImmutableDoubleObjectMap<V> newWithoutKey(double 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:double

the key to remove

Returns:ImmutableDoubleObjectMap<V>

an immutable copy of this map with key removed

rejectback to summary
public ImmutableDoubleObjectMap<V> reject(DoubleObjectPredicate<? super V> predicate)

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

Doc from org.eclipse.collections.api.map.primitive.DoubleObjectMap.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 ImmutableDoubleObjectMap<V> select(DoubleObjectPredicate<? super V> predicate)

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

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

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

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

Redeclares org.eclipse.collections.api.map.primitive.DoubleObjectMap.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