| 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> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.empty() |
<K> MutableObjectIntMap<K> |
MutableObjectIntHashingStrategyMapFactory.empty(HashingStrategy<? super K> hashingStrategy) |
<T,K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.from(Iterable<T> iterable,
Function<? super T,? extends K> keyFunction,
IntFunction<? super T> valueFunction)
Creates an
MutableObjectIntMap from an Iterable<T> by applying keyFunction and valueFunction. |
<K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.of()
Same as
MutableObjectIntMapFactory.empty(). |
<K> MutableObjectIntMap<K> |
MutableObjectIntHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy)
Same as
#empty(). |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.of(K key,
int value) |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.of(K key1,
int value1,
K key2,
int value2) |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.of(K key1,
int value1,
K key2,
int value2,
K key3,
int value3) |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.of(K key1,
int value1,
K key2,
int value2,
K key3,
int value3,
K key4,
int value4) |
<K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.ofAll(ObjectIntMap<? extends K> map)
|
<K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.ofInitialCapacity(int capacity)
Same as
MutableObjectIntMapFactory.empty(). |
<K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.with()
Same as
MutableObjectIntMapFactory.empty(). |
<K> MutableObjectIntMap<K> |
MutableObjectIntHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy)
Same as
#empty(). |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.with(K key,
int value) |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.with(K key1,
int value1,
K key2,
int value2) |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.with(K key1,
int value1,
K key2,
int value2,
K key3,
int value3) |
default <K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.with(K key1,
int value1,
K key2,
int value2,
K key3,
int value3,
K key4,
int value4) |
<K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.withAll(ObjectIntMap<? extends K> map) |
<K> MutableObjectIntMap<K> |
MutableObjectIntHashingStrategyMapFactory.withInitialCapacity(HashingStrategy<? super K> hashingStrategy,
int initialCapacity)
Same as
#empty() but takes in an initial capacity |
<K> MutableObjectIntMap<K> |
MutableObjectIntMapFactory.withInitialCapacity(int capacity)
Same as
MutableObjectIntMapFactory.empty(). |
| Modifier and Type | Method and Description |
|---|---|
MutableObjectIntMap<K> |
MutableObjectIntMap.asSynchronized() |
MutableObjectIntMap<K> |
MutableObjectIntMap.asUnmodifiable() |
MutableObjectIntMap<V> |
MutableIntObjectMap.flipUniqueValues() |
MutableObjectIntMap<K> |
MutableObjectIntMap.reject(ObjectIntPredicate<? super K> predicate) |
MutableObjectIntMap<K> |
MutableObjectIntMap.select(ObjectIntPredicate<? super K> predicate) |
default MutableObjectIntMap<K> |
MutableObjectIntMap.tap(IntProcedure procedure) |
default MutableObjectIntMap<K> |
MutableObjectIntMap.withAllKeyValues(Iterable<ObjectIntPair<K>> keyValuePairs) |
MutableObjectIntMap<K> |
MutableObjectIntMap.withKeyValue(K key,
int value)
Associates a value with the specified key.
|
MutableObjectIntMap<K> |
MutableObjectIntMap.withoutAllKeys(Iterable<? extends K> keys)
Removes the mappings associated with all the keys, if they exist, from this map.
|
MutableObjectIntMap<K> |
MutableObjectIntMap.withoutKey(K key)
Removes the mapping associated with the key, if one exists, from this map.
|
Copyright © 2004–2023. All rights reserved.