| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.ints |
Provides type-specific classes for integer elements or keys.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Int2ShortMap
A type-specific
Map; provides some additional methods that use polymorphism to avoid (un)boxing, and handling of a default return value. |
interface |
Int2ShortSortedMap
A type-specific
SortedMap; provides some additional methods that use polymorphism to avoid (un)boxing. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractInt2ShortFunction
An abstract class providing basic methods for functions implementing a type-specific interface.
|
class |
AbstractInt2ShortMap
An abstract class providing basic methods for maps implementing a type-specific interface.
|
class |
AbstractInt2ShortSortedMap
An abstract class providing basic methods for sorted maps implementing a type-specific interface.
|
class |
Int2ShortArrayMap
A simple, brute-force implementation of a map based on two parallel backing arrays.
|
class |
Int2ShortAVLTreeMap
A type-specific AVL tree map with a fast, small-footprint implementation.
|
static class |
Int2ShortFunctions.EmptyFunction
An immutable class representing an empty type-specific function.
|
static class |
Int2ShortFunctions.PrimitiveFunction
An adapter for mapping generic total functions to partial primitive functions.
|
static class |
Int2ShortFunctions.Singleton
An immutable class representing a type-specific singleton function.
|
static class |
Int2ShortFunctions.SynchronizedFunction
A synchronized wrapper class for functions.
|
static class |
Int2ShortFunctions.UnmodifiableFunction
An unmodifiable wrapper class for functions.
|
class |
Int2ShortLinkedOpenHashMap
A type-specific linked hash map with with a fast, small-footprint implementation.
|
static class |
Int2ShortMaps.EmptyMap
An immutable class representing an empty type-specific map.
|
static class |
Int2ShortMaps.Singleton
An immutable class representing a type-specific singleton map.
|
static class |
Int2ShortMaps.SynchronizedMap
A synchronized wrapper class for maps.
|
static class |
Int2ShortMaps.UnmodifiableMap
An unmodifiable wrapper class for maps.
|
class |
Int2ShortOpenCustomHashMap
A type-specific hash map with a fast, small-footprint implementation whose hashing strategy
is specified at creation time.
|
class |
Int2ShortOpenHashMap
A type-specific hash map with a fast, small-footprint implementation.
|
class |
Int2ShortRBTreeMap
A type-specific red-black tree map with a fast, small-footprint implementation.
|
static class |
Int2ShortSortedMaps.EmptySortedMap
An immutable class representing an empty type-specific sorted map.
|
static class |
Int2ShortSortedMaps.Singleton
An immutable class representing a type-specific singleton sorted map.
|
static class |
Int2ShortSortedMaps.SynchronizedSortedMap
A synchronized wrapper class for sorted maps.
|
static class |
Int2ShortSortedMaps.UnmodifiableSortedMap
An unmodifiable wrapper class for sorted maps.
|
| Modifier and Type | Field and Description |
|---|---|
protected Int2ShortFunction |
Int2ShortFunctions.SynchronizedFunction.function |
protected Int2ShortFunction |
Int2ShortFunctions.UnmodifiableFunction.function |
| Modifier and Type | Method and Description |
|---|---|
static Int2ShortFunction |
Int2ShortFunctions.primitive(Function<? super Integer,? extends Short> f)
Returns a (partial) type-specific function based on the given total generic function.
|
static Int2ShortFunction |
Int2ShortFunctions.singleton(Integer key,
Short value)
Returns a type-specific immutable function containing only the specified pair.
|
static Int2ShortFunction |
Int2ShortFunctions.singleton(int key,
short value)
Returns a type-specific immutable function containing only the specified pair.
|
static Int2ShortFunction |
Int2ShortFunctions.synchronize(Int2ShortFunction f)
Returns a synchronized type-specific function backed by the given type-specific function.
|
static Int2ShortFunction |
Int2ShortFunctions.synchronize(Int2ShortFunction f,
Object sync)
Returns a synchronized type-specific function backed by the given type-specific function, using an assigned object to synchronize.
|
static Int2ShortFunction |
Int2ShortFunctions.unmodifiable(Int2ShortFunction f)
Returns an unmodifiable type-specific function backed by the given type-specific function.
|
| Modifier and Type | Method and Description |
|---|---|
short |
Int2ShortMaps.SynchronizedMap.computeIfAbsentPartial(int key,
Int2ShortFunction mappingFunction) |
short |
Int2ShortMaps.UnmodifiableMap.computeIfAbsentPartial(int key,
Int2ShortFunction mappingFunction) |
default short |
Int2ShortMap.computeIfAbsentPartial(int key,
Int2ShortFunction 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.
|
static Int2ShortFunction |
Int2ShortFunctions.synchronize(Int2ShortFunction f)
Returns a synchronized type-specific function backed by the given type-specific function.
|
static Int2ShortFunction |
Int2ShortFunctions.synchronize(Int2ShortFunction f,
Object sync)
Returns a synchronized type-specific function backed by the given type-specific function, using an assigned object to synchronize.
|
static Int2ShortFunction |
Int2ShortFunctions.unmodifiable(Int2ShortFunction f)
Returns an unmodifiable type-specific function backed by the given type-specific function.
|
| Constructor and Description |
|---|
SynchronizedFunction(Int2ShortFunction f) |
SynchronizedFunction(Int2ShortFunction f,
Object sync) |
UnmodifiableFunction(Int2ShortFunction f) |
Copyright © 2020. All rights reserved.