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