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