| 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 |
|---|---|
ImmutableIntIntMap |
ImmutableIntIntMapFactory.empty() |
<T> ImmutableIntIntMap |
ImmutableIntIntMapFactory.from(Iterable<T> iterable,
IntFunction<? super T> keyFunction,
IntFunction<? super T> valueFunction)
Creates an
ImmutableIntIntMap from an Iterable<T> by applying keyFunction and valueFunction. |
ImmutableIntIntMap |
ImmutableIntIntMapFactory.of()
Same as
ImmutableIntIntMapFactory.empty(). |
ImmutableIntIntMap |
ImmutableIntIntMapFactory.of(int key,
int value)
|
ImmutableIntIntMap |
ImmutableIntIntMapFactory.ofAll(IntIntMap map)
|
ImmutableIntIntMap |
ImmutableIntIntMapFactory.with()
Same as
ImmutableIntIntMapFactory.empty(). |
ImmutableIntIntMap |
ImmutableIntIntMapFactory.with(int key,
int value) |
ImmutableIntIntMap |
ImmutableIntIntMapFactory.withAll(IntIntMap map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntIntMap |
ImmutableIntIntMap.flipUniqueValues() |
ImmutableIntIntMap |
ImmutableIntIntMap.newWithKeyValue(int 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. |
ImmutableIntIntMap |
ImmutableIntIntMap.newWithoutAllKeys(IntIterable keys)
Copy this map, remove any associated values with the specified keys (if any exist),
and return the copy as a new immutable map.
|
ImmutableIntIntMap |
ImmutableIntIntMap.newWithoutKey(int key)
Copy this map, remove any associated value with the key (if one exists), and
return the copy as a new immutable map.
|
ImmutableIntIntMap |
ImmutableIntIntMap.reject(IntIntPredicate predicate) |
ImmutableIntIntMap |
ImmutableIntIntMap.select(IntIntPredicate predicate) |
ImmutableIntIntMap |
IntIntMap.toImmutable()
Returns a copy of this map that is immutable (if this map is mutable) or
itself if it is already immutable.
|
Copyright © 2004–2022. All rights reserved.