| 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 |
|---|---|
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.empty() |
<T,K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.from(Iterable<T> iterable,
Function<? super T,? extends K> keyFunction,
ShortFunction<? super T> valueFunction)
Creates an
ImmutableObjectShortMap from an Iterable<T> by applying keyFunction and valueFunction. |
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.of()
|
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.of(K key,
short value)
|
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.ofAll(ObjectShortMap<? extends K> map)
|
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.with()
|
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.with(K key,
short value) |
<K> ImmutableObjectShortMap<K> |
ImmutableObjectShortMapFactory.withAll(ObjectShortMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableObjectShortMap<V> |
ImmutableShortObjectMap.flipUniqueValues() |
ImmutableObjectShortMap<K> |
ImmutableObjectShortMap.newWithKeyValue(K key,
short 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. |
ImmutableObjectShortMap<K> |
ImmutableObjectShortMap.newWithoutAllKeys(Iterable<? extends K> keys)
Copy this map, remove any associated values with the specified keys (if any exist),
and return the copy as a new immutable map.
|
ImmutableObjectShortMap<K> |
ImmutableObjectShortMap.newWithoutKey(K key)
Copy this map, remove any associated value with the key (if one exists), and
return the copy as a new immutable map.
|
ImmutableObjectShortMap<K> |
ImmutableObjectShortMap.reject(ObjectShortPredicate<? super K> predicate) |
ImmutableObjectShortMap<K> |
ImmutableObjectShortMap.select(ObjectShortPredicate<? super K> predicate) |
default ImmutableObjectShortMap<K> |
ImmutableObjectShortMap.tap(ShortProcedure procedure) |
ImmutableObjectShortMap<K> |
ObjectShortMap.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.