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