| 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 |
|---|---|
ImmutableIntShortMap |
ImmutableIntShortMapFactory.empty() |
<T> ImmutableIntShortMap |
ImmutableIntShortMapFactory.from(Iterable<T> iterable,
IntFunction<? super T> keyFunction,
ShortFunction<? super T> valueFunction)
Creates an
ImmutableIntShortMap from an Iterable<T> by applying keyFunction and valueFunction. |
ImmutableIntShortMap |
ImmutableIntShortMapFactory.of()
Same as
ImmutableIntShortMapFactory.empty(). |
ImmutableIntShortMap |
ImmutableIntShortMapFactory.of(int key,
short value)
|
ImmutableIntShortMap |
ImmutableIntShortMapFactory.ofAll(IntShortMap map)
|
ImmutableIntShortMap |
ImmutableIntShortMapFactory.with()
Same as
ImmutableIntShortMapFactory.empty(). |
ImmutableIntShortMap |
ImmutableIntShortMapFactory.with(int key,
short value) |
ImmutableIntShortMap |
ImmutableIntShortMapFactory.withAll(IntShortMap map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntShortMap |
ImmutableShortIntMap.flipUniqueValues() |
ImmutableIntShortMap |
ImmutableIntShortMap.newWithKeyValue(int 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. |
ImmutableIntShortMap |
ImmutableIntShortMap.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.
|
ImmutableIntShortMap |
ImmutableIntShortMap.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.
|
ImmutableIntShortMap |
ImmutableIntShortMap.reject(IntShortPredicate predicate) |
ImmutableIntShortMap |
ImmutableIntShortMap.select(IntShortPredicate predicate) |
ImmutableIntShortMap |
IntShortMap.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.