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

public Interface ImmutableIntObjectMap<V>

extends IntObjectMap<V>, ImmutablePrimitiveObjectMap<V>
Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.block.predicate.primitive.IntObjectPredicate

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

Method Summary

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

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

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

public ImmutableIntObjectMap<V>

Returns:

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

Returns:

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

Returns:

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

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

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

public ImmutableIntObjectMap<V>
select(IntObjectPredicate<? super V> predicate)

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

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

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

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

Method Detail

flipUniqueValuesback to summary
public ImmutableObjectIntMap<V> flipUniqueValues()

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

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

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

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

the key to add

value:V

the value to associate with the key in the copy

Returns:ImmutableIntObjectMap<V>

an immutable copy of this map with value associated with key

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

the keys to remove

Returns:ImmutableIntObjectMap<V>

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

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

the key to remove

Returns:ImmutableIntObjectMap<V>

an immutable copy of this map with key removed

rejectback to summary
public ImmutableIntObjectMap<V> reject(IntObjectPredicate<? super V> predicate)

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

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

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

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

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

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

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