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

public Interface ImmutableByteObjectMap<V>

extends ByteObjectMap<V>, ImmutablePrimitiveObjectMap<V>
Imports
org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.block.predicate.primitive.ByteObjectPredicate

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

Method Summary

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

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

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

public ImmutableByteObjectMap<V>

Returns:

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

Returns:

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

Returns:

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

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

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

public ImmutableByteObjectMap<V>
select(ByteObjectPredicate<? super V> predicate)

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

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

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

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

Method Detail

flipUniqueValuesback to summary
public ImmutableObjectByteMap<V> flipUniqueValues()

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

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

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

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

the key to add

value:V

the value to associate with the key in the copy

Returns:ImmutableByteObjectMap<V>

an immutable copy of this map with value associated with key

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

the keys to remove

Returns:ImmutableByteObjectMap<V>

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

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

the key to remove

Returns:ImmutableByteObjectMap<V>

an immutable copy of this map with key removed

rejectback to summary
public ImmutableByteObjectMap<V> reject(ByteObjectPredicate<? super V> predicate)

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

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

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

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

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

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

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