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