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