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