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