| 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 |
|---|---|
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.empty() |
<T,V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.from(Iterable<T> iterable,
ShortFunction<? super T> keyFunction,
Function<? super T,? extends V> valueFunction)
Creates an
MutableShortObjectMap from an Iterable<T> by applying keyFunction and valueFunction. |
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.of()
Same as
MutableShortObjectMapFactory.empty(). |
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.ofAll(ShortObjectMap<? extends V> map)
|
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.ofInitialCapacity(int capacity)
Same as
MutableShortObjectMapFactory.empty(). |
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.with()
Same as
MutableShortObjectMapFactory.empty(). |
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.withAll(ShortObjectMap<? extends V> map) |
<V> MutableShortObjectMap<V> |
MutableShortObjectMapFactory.withInitialCapacity(int capacity)
Same as
MutableShortObjectMapFactory.empty(). |
| Modifier and Type | Method and Description |
|---|---|
MutableShortObjectMap<V> |
MutableShortObjectMap.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.
|
MutableShortObjectMap<V> |
MutableShortObjectMap.asUnmodifiable()
Returns an unmodifiable view of this map, delegating all read-only operations to this
map and throwing an
UnsupportedOperationException for all mutating operations. |
MutableShortObjectMap<K> |
MutableObjectShortMap.flipUniqueValues() |
MutableShortObjectMap<V> |
MutableShortObjectMap.reject(ShortObjectPredicate<? super V> predicate) |
MutableShortObjectMap<V> |
MutableShortObjectMap.select(ShortObjectPredicate<? super V> predicate) |
MutableShortObjectMap<V> |
MutableShortObjectMap.tap(Procedure<? super V> procedure) |
default MutableShortObjectMap<V> |
MutableShortObjectMap.withAllKeyValues(Iterable<ShortObjectPair<V>> keyValuePairs)
Puts all of the key/value mappings from the specified pairs into this map.
|
MutableShortObjectMap<V> |
MutableShortObjectMap.withKeyValue(short key,
V value)
Associates a value with the specified key.
|
MutableShortObjectMap<V> |
MutableShortObjectMap.withoutAllKeys(ShortIterable keys)
Removes the mappings associated with all the keys, if they exist, from this map.
|
MutableShortObjectMap<V> |
MutableShortObjectMap.withoutKey(short key)
Removes the mapping associated with the key, if one exists, from this map.
|
Copyright © 2004–2020. All rights reserved.