| 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> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.empty() |
<T,V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.from(Iterable<T> iterable,
IntFunction<? super T> keyFunction,
Function<? super T,? extends V> valueFunction)
Creates an
ImmutableIntObjectMap from an Iterable<T> by applying keyFunction and valueFunction. |
<V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.of()
Same as
ImmutableIntObjectMapFactory.empty(). |
<V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.of(int key,
V value)
|
<V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.ofAll(IntObjectMap<? extends V> map)
|
<V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.with()
Same as
ImmutableIntObjectMapFactory.empty(). |
<V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.with(int key,
V value) |
<V> ImmutableIntObjectMap<V> |
ImmutableIntObjectMapFactory.withAll(IntObjectMap<? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntObjectMap<K> |
ImmutableObjectIntMap.flipUniqueValues() |
ImmutableIntObjectMap<V> |
ImmutableIntObjectMap.newWithKeyValue(int 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. |
ImmutableIntObjectMap<V> |
ImmutableIntObjectMap.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.
|
ImmutableIntObjectMap<V> |
ImmutableIntObjectMap.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.
|
ImmutableIntObjectMap<V> |
ImmutableIntObjectMap.reject(IntObjectPredicate<? super V> predicate) |
ImmutableIntObjectMap<V> |
ImmutableIntObjectMap.select(IntObjectPredicate<? super V> predicate) |
ImmutableIntObjectMap<V> |
ImmutableIntObjectMap.tap(Procedure<? super V> procedure) |
ImmutableIntObjectMap<V> |
IntObjectMap.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.