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