| Package | Description |
|---|---|
| org.eclipse.collections.api.factory.map.primitive | |
| org.eclipse.collections.api.map.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
| Modifier and Type | Method and Description |
|---|---|
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.empty() |
<T,K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.from(Iterable<T> iterable,
Function<? super T,? extends K> keyFunction,
IntFunction<? super T> valueFunction)
Creates an
ImmutableObjectIntMap from an Iterable<T> by applying keyFunction and valueFunction. |
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.of()
Same as
ImmutableObjectIntMapFactory.empty(). |
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.of(K key,
int value)
|
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.ofAll(ObjectIntMap<? extends K> map)
|
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.with()
Same as
ImmutableObjectIntMapFactory.empty(). |
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.with(K key,
int value) |
<K> ImmutableObjectIntMap<K> |
ImmutableObjectIntMapFactory.withAll(ObjectIntMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableObjectIntMap<V> |
ImmutableIntObjectMap.flipUniqueValues() |
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.newWithKeyValue(K key,
int 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. |
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.newWithoutAllKeys(Iterable<? extends K> keys)
Copy this map, remove any associated values with the specified keys (if any exist),
and return the copy as a new immutable map.
|
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.newWithoutKey(K key)
Copy this map, remove any associated value with the key (if one exists), and
return the copy as a new immutable map.
|
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.reject(ObjectIntPredicate<? super K> predicate) |
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.select(ObjectIntPredicate<? super K> predicate) |
default ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.tap(IntProcedure procedure) |
ImmutableObjectIntMap<K> |
ObjectIntMap.toImmutable()
Returns a copy of this map that is immutable (if this map is mutable) or
itself if it is already immutable.
|
Copyright © 2004–2021. All rights reserved.