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