| 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 |
|---|---|
MutableShortIntMap |
MutableShortIntMapFactory.empty() |
<T> MutableShortIntMap |
MutableShortIntMapFactory.from(Iterable<T> iterable,
ShortFunction<? super T> keyFunction,
IntFunction<? super T> valueFunction)
Creates an
MutableShortIntMap from an Iterable<T> by applying keyFunction and valueFunction. |
MutableShortIntMap |
MutableShortIntMapFactory.of()
Same as
MutableShortIntMapFactory.empty(). |
default MutableShortIntMap |
MutableShortIntMapFactory.of(short key,
int value) |
default MutableShortIntMap |
MutableShortIntMapFactory.of(short key1,
int value1,
short key2,
int value2) |
default MutableShortIntMap |
MutableShortIntMapFactory.of(short key1,
int value1,
short key2,
int value2,
short key3,
int value3) |
default MutableShortIntMap |
MutableShortIntMapFactory.of(short key1,
int value1,
short key2,
int value2,
short key3,
int value3,
short key4,
int value4) |
MutableShortIntMap |
MutableShortIntMapFactory.ofAll(ShortIntMap map)
|
MutableShortIntMap |
MutableShortIntMapFactory.ofInitialCapacity(int capacity)
Same as
MutableShortIntMapFactory.empty(). |
MutableShortIntMap |
MutableShortIntMapFactory.with()
Same as
MutableShortIntMapFactory.empty(). |
default MutableShortIntMap |
MutableShortIntMapFactory.with(short key,
int value) |
default MutableShortIntMap |
MutableShortIntMapFactory.with(short key1,
int value1,
short key2,
int value2) |
default MutableShortIntMap |
MutableShortIntMapFactory.with(short key1,
int value1,
short key2,
int value2,
short key3,
int value3) |
default MutableShortIntMap |
MutableShortIntMapFactory.with(short key1,
int value1,
short key2,
int value2,
short key3,
int value3,
short key4,
int value4) |
MutableShortIntMap |
MutableShortIntMapFactory.withAll(ShortIntMap map) |
MutableShortIntMap |
MutableShortIntMapFactory.withInitialCapacity(int capacity)
Same as
MutableShortIntMapFactory.empty(). |
| Modifier and Type | Method and Description |
|---|---|
MutableShortIntMap |
MutableShortIntMap.asSynchronized()
Returns a synchronized view of this map, delegating all operations to this map but
ensuring only one caller has access to the map at a time.
|
MutableShortIntMap |
MutableShortIntMap.asUnmodifiable()
Returns an unmodifiable view of this map, delegating all read-only operations to this
map and throwing an
UnsupportedOperationException for all mutating operations. |
MutableShortIntMap |
MutableIntShortMap.flipUniqueValues() |
MutableShortIntMap |
MutableShortIntMap.reject(ShortIntPredicate predicate) |
MutableShortIntMap |
MutableShortIntMap.select(ShortIntPredicate predicate) |
default MutableShortIntMap |
MutableShortIntMap.withAllKeyValues(Iterable<ShortIntPair> keyValuePairs)
Puts all of the key/value mappings from the specified pairs into this map.
|
MutableShortIntMap |
MutableShortIntMap.withKeyValue(short key,
int value)
Associates a value with the specified key.
|
MutableShortIntMap |
MutableShortIntMap.withoutAllKeys(ShortIterable keys)
Removes the mappings associated with all the keys, if they exist, from this map.
|
MutableShortIntMap |
MutableShortIntMap.withoutKey(short key)
Removes the mapping associated with the key, if one exists, from this map.
|
Copyright © 2004–2023. All rights reserved.