| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.objects |
Provides type-specific classes for object elements or keys.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Reference2IntMap<K>
A type-specific
Map; provides some additional methods that use polymorphism to avoid (un)boxing, and handling of a default return value. |
interface |
Reference2IntSortedMap<K>
A type-specific
SortedMap; provides some additional methods that use polymorphism to avoid (un)boxing. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReference2IntFunction<K>
An abstract class providing basic methods for functions implementing a type-specific interface.
|
class |
AbstractReference2IntMap<K>
An abstract class providing basic methods for maps implementing a type-specific interface.
|
class |
AbstractReference2IntSortedMap<K>
An abstract class providing basic methods for sorted maps implementing a type-specific interface.
|
class |
Reference2IntArrayMap<K>
A simple, brute-force implementation of a map based on two parallel backing arrays.
|
static class |
Reference2IntFunctions.EmptyFunction<K>
An immutable class representing an empty type-specific function.
|
static class |
Reference2IntFunctions.PrimitiveFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
|
static class |
Reference2IntFunctions.Singleton<K>
An immutable class representing a type-specific singleton function.
|
static class |
Reference2IntFunctions.SynchronizedFunction<K>
A synchronized wrapper class for functions.
|
static class |
Reference2IntFunctions.UnmodifiableFunction<K>
An unmodifiable wrapper class for functions.
|
class |
Reference2IntLinkedOpenHashMap<K>
A type-specific linked hash map with with a fast, small-footprint implementation.
|
static class |
Reference2IntMaps.EmptyMap<K>
An immutable class representing an empty type-specific map.
|
static class |
Reference2IntMaps.Singleton<K>
An immutable class representing a type-specific singleton map.
|
static class |
Reference2IntMaps.SynchronizedMap<K>
A synchronized wrapper class for maps.
|
static class |
Reference2IntMaps.UnmodifiableMap<K>
An unmodifiable wrapper class for maps.
|
class |
Reference2IntOpenCustomHashMap<K>
A type-specific hash map with a fast, small-footprint implementation whose hashing strategy
is specified at creation time.
|
class |
Reference2IntOpenHashMap<K>
A type-specific hash map with a fast, small-footprint implementation.
|
static class |
Reference2IntSortedMaps.EmptySortedMap<K>
An immutable class representing an empty type-specific sorted map.
|
static class |
Reference2IntSortedMaps.Singleton<K>
An immutable class representing a type-specific singleton sorted map.
|
static class |
Reference2IntSortedMaps.SynchronizedSortedMap<K>
A synchronized wrapper class for sorted maps.
|
static class |
Reference2IntSortedMaps.UnmodifiableSortedMap<K>
An unmodifiable wrapper class for sorted maps.
|
| Modifier and Type | Field and Description |
|---|---|
protected Reference2IntFunction<K> |
Reference2IntFunctions.SynchronizedFunction.function |
protected Reference2IntFunction<K> |
Reference2IntFunctions.UnmodifiableFunction.function |
| Modifier and Type | Method and Description |
|---|---|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.primitive(Function<? super K,? extends Integer> f)
Returns a (partial) type-specific function based on the given total generic function.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.singleton(K key,
int value)
Returns a type-specific immutable function containing only the specified pair.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.singleton(K key,
Integer value)
Returns a type-specific immutable function containing only the specified pair.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.synchronize(Reference2IntFunction<K> f)
Returns a synchronized type-specific function backed by the given type-specific function.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.synchronize(Reference2IntFunction<K> f,
Object sync)
Returns a synchronized type-specific function backed by the given type-specific function, using an assigned object to synchronize.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.unmodifiable(Reference2IntFunction<K> f)
Returns an unmodifiable type-specific function backed by the given type-specific function.
|
| Modifier and Type | Method and Description |
|---|---|
default int |
Reference2IntMap.computeIntIfAbsentPartial(K key,
Reference2IntFunction<? super K> mappingFunction)
If the specified key is not already associated with a value, attempts to compute its value
using the given mapping function and enters it into this map, unless the key is not present
in the given mapping function.
|
int |
Reference2IntMaps.SynchronizedMap.computeIntIfAbsentPartial(K key,
Reference2IntFunction<? super K> mappingFunction) |
int |
Reference2IntMaps.UnmodifiableMap.computeIntIfAbsentPartial(K key,
Reference2IntFunction<? super K> mappingFunction) |
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.synchronize(Reference2IntFunction<K> f)
Returns a synchronized type-specific function backed by the given type-specific function.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.synchronize(Reference2IntFunction<K> f,
Object sync)
Returns a synchronized type-specific function backed by the given type-specific function, using an assigned object to synchronize.
|
static <K> Reference2IntFunction<K> |
Reference2IntFunctions.unmodifiable(Reference2IntFunction<K> f)
Returns an unmodifiable type-specific function backed by the given type-specific function.
|
| Constructor and Description |
|---|
SynchronizedFunction(Reference2IntFunction<K> f) |
SynchronizedFunction(Reference2IntFunction<K> f,
Object sync) |
UnmodifiableFunction(Reference2IntFunction<K> f) |
Copyright © 2020. All rights reserved.