| 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> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.empty() |
<T,V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.from(Iterable<T> iterable,
LongFunction<? super T> keyFunction,
Function<? super T,? extends V> valueFunction)
Creates an
ImmutableLongObjectMap from an Iterable<T> by applying keyFunction and valueFunction. |
<V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.of()
|
<V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.of(long key,
V value)
|
<V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.ofAll(LongObjectMap<? extends V> map)
|
<V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.with()
|
<V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.with(long key,
V value) |
<V> ImmutableLongObjectMap<V> |
ImmutableLongObjectMapFactory.withAll(LongObjectMap<? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableLongObjectMap<K> |
ImmutableObjectLongMap.flipUniqueValues() |
ImmutableLongObjectMap<V> |
ImmutableLongObjectMap.newWithKeyValue(long key,
V value)
Copy this map, associate the value with the key (replacing the value if one
already exists for
key), and return the copy as new immutable map. |
ImmutableLongObjectMap<V> |
ImmutableLongObjectMap.newWithoutAllKeys(LongIterable keys)
Copy this map, remove any associated values with the specified keys (if any exist),
and return the copy as a new immutable map.
|
ImmutableLongObjectMap<V> |
ImmutableLongObjectMap.newWithoutKey(long key)
Copy this map, remove any associated value with the key (if one exists), and
return the copy as a new immutable map.
|
ImmutableLongObjectMap<V> |
ImmutableLongObjectMap.reject(LongObjectPredicate<? super V> predicate) |
ImmutableLongObjectMap<V> |
ImmutableLongObjectMap.select(LongObjectPredicate<? super V> predicate) |
ImmutableLongObjectMap<V> |
ImmutableLongObjectMap.tap(Procedure<? super V> procedure) |
ImmutableLongObjectMap<V> |
LongObjectMap.toImmutable()
Returns a copy of this map that is immutable (if this map is mutable) or
itself if it is already immutable.
|
Copyright © 2004–2020. All rights reserved.