| 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 |
|---|---|
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.empty() |
<T> ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.from(Iterable<T> iterable,
IntFunction<? super T> keyFunction,
FloatFunction<? super T> valueFunction)
Creates an
ImmutableIntFloatMap from an Iterable<T> by applying keyFunction and valueFunction. |
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.of()
Same as
ImmutableIntFloatMapFactory.empty(). |
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.of(int key,
float value)
|
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.ofAll(IntFloatMap map)
|
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.with()
Same as
ImmutableIntFloatMapFactory.empty(). |
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.with(int key,
float value) |
ImmutableIntFloatMap |
ImmutableIntFloatMapFactory.withAll(IntFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntFloatMap |
ImmutableFloatIntMap.flipUniqueValues() |
ImmutableIntFloatMap |
ImmutableIntFloatMap.newWithKeyValue(int key,
float 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. |
ImmutableIntFloatMap |
ImmutableIntFloatMap.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.
|
ImmutableIntFloatMap |
ImmutableIntFloatMap.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.
|
ImmutableIntFloatMap |
ImmutableIntFloatMap.reject(IntFloatPredicate predicate) |
ImmutableIntFloatMap |
ImmutableIntFloatMap.select(IntFloatPredicate predicate) |
ImmutableIntFloatMap |
IntFloatMap.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.