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