| 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 |
|---|---|
ImmutableLongIntMap |
ImmutableLongIntMapFactory.empty() |
<T> ImmutableLongIntMap |
ImmutableLongIntMapFactory.from(Iterable<T> iterable,
LongFunction<? super T> keyFunction,
IntFunction<? super T> valueFunction)
Creates an
ImmutableLongIntMap from an Iterable<T> by applying keyFunction and valueFunction. |
ImmutableLongIntMap |
ImmutableLongIntMapFactory.of()
Same as
ImmutableLongIntMapFactory.empty(). |
ImmutableLongIntMap |
ImmutableLongIntMapFactory.of(long key,
int value)
|
ImmutableLongIntMap |
ImmutableLongIntMapFactory.ofAll(LongIntMap map)
|
ImmutableLongIntMap |
ImmutableLongIntMapFactory.with()
Same as
ImmutableLongIntMapFactory.empty(). |
ImmutableLongIntMap |
ImmutableLongIntMapFactory.with(long key,
int value) |
ImmutableLongIntMap |
ImmutableLongIntMapFactory.withAll(LongIntMap map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableLongIntMap |
ImmutableIntLongMap.flipUniqueValues() |
ImmutableLongIntMap |
ImmutableLongIntMap.newWithKeyValue(long key,
int 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. |
ImmutableLongIntMap |
ImmutableLongIntMap.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.
|
ImmutableLongIntMap |
ImmutableLongIntMap.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.
|
ImmutableLongIntMap |
ImmutableLongIntMap.reject(LongIntPredicate predicate) |
ImmutableLongIntMap |
ImmutableLongIntMap.select(LongIntPredicate predicate) |
ImmutableLongIntMap |
LongIntMap.toImmutable()
Returns a copy of this map that is immutable (if this map is mutable) or
itself if it is already immutable.
|
Copyright © 2004–2021. All rights reserved.