| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.objects |
Provides type-specific classes for object elements or keys.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Object2DoubleSortedMap<K>
A type-specific
SortedMap; provides some additional methods that use polymorphism to avoid (un)boxing. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractObject2DoubleMap<K>
An abstract class providing basic methods for maps implementing a type-specific interface.
|
class |
AbstractObject2DoubleSortedMap<K>
An abstract class providing basic methods for sorted maps implementing a type-specific interface.
|
class |
Object2DoubleArrayMap<K>
A simple, brute-force implementation of a map based on two parallel backing arrays.
|
class |
Object2DoubleAVLTreeMap<K>
A type-specific AVL tree map with a fast, small-footprint implementation.
|
class |
Object2DoubleLinkedOpenCustomHashMap<K>
A type-specific linked hash map with with a fast, small-footprint implementation.
|
class |
Object2DoubleLinkedOpenHashMap<K>
A type-specific linked hash map with with a fast, small-footprint implementation.
|
static class |
Object2DoubleMaps.EmptyMap<K>
An immutable class representing an empty type-specific map.
|
static class |
Object2DoubleMaps.Singleton<K>
An immutable class representing a type-specific singleton map.
|
static class |
Object2DoubleMaps.SynchronizedMap<K>
A synchronized wrapper class for maps.
|
static class |
Object2DoubleMaps.UnmodifiableMap<K>
An unmodifiable wrapper class for maps.
|
class |
Object2DoubleOpenCustomHashMap<K>
A type-specific hash map with a fast, small-footprint implementation whose hashing strategy
is specified at creation time.
|
class |
Object2DoubleOpenHashMap<K>
A type-specific hash map with a fast, small-footprint implementation.
|
class |
Object2DoubleRBTreeMap<K>
A type-specific red-black tree map with a fast, small-footprint implementation.
|
static class |
Object2DoubleSortedMaps.EmptySortedMap<K>
An immutable class representing an empty type-specific sorted map.
|
static class |
Object2DoubleSortedMaps.Singleton<K>
An immutable class representing a type-specific singleton sorted map.
|
static class |
Object2DoubleSortedMaps.SynchronizedSortedMap<K>
A synchronized wrapper class for sorted maps.
|
static class |
Object2DoubleSortedMaps.UnmodifiableSortedMap<K>
An unmodifiable wrapper class for sorted maps.
|
| Modifier and Type | Field and Description |
|---|---|
protected Object2DoubleMap<K> |
AbstractObject2DoubleMap.BasicEntrySet.map |
protected Object2DoubleMap<K> |
Object2DoubleMaps.SynchronizedMap.map |
protected Object2DoubleMap<K> |
Object2DoubleMaps.UnmodifiableMap.map |
| Modifier and Type | Method and Description |
|---|---|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.emptyMap()
Returns an empty map (immutable).
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.singleton(K key,
double value)
Returns a type-specific immutable map containing only the specified pair.
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.singleton(K key,
Double value)
Returns a type-specific immutable map containing only the specified pair.
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.synchronize(Object2DoubleMap<K> m)
Returns a synchronized type-specific map backed by the given type-specific map.
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.synchronize(Object2DoubleMap<K> m,
Object sync)
Returns a synchronized type-specific map backed by the given type-specific map, using an assigned object to synchronize.
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.unmodifiable(Object2DoubleMap<K> m)
Returns an unmodifiable type-specific map backed by the given type-specific map.
|
| Modifier and Type | Method and Description |
|---|---|
static <K> void |
Object2DoubleMaps.fastForEach(Object2DoubleMap<K> map,
Consumer<? super Object2DoubleMap.Entry<K>> consumer)
|
static <K> ObjectIterable<Object2DoubleMap.Entry<K>> |
Object2DoubleMaps.fastIterable(Object2DoubleMap<K> map)
|
static <K> ObjectIterator<Object2DoubleMap.Entry<K>> |
Object2DoubleMaps.fastIterator(Object2DoubleMap<K> map)
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.synchronize(Object2DoubleMap<K> m)
Returns a synchronized type-specific map backed by the given type-specific map.
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.synchronize(Object2DoubleMap<K> m,
Object sync)
Returns a synchronized type-specific map backed by the given type-specific map, using an assigned object to synchronize.
|
static <K> Object2DoubleMap<K> |
Object2DoubleMaps.unmodifiable(Object2DoubleMap<K> m)
Returns an unmodifiable type-specific map backed by the given type-specific map.
|
| Constructor and Description |
|---|
BasicEntrySet(Object2DoubleMap<K> map) |
Object2DoubleArrayMap(Object2DoubleMap<K> m)
Creates a new empty array map copying the entries of a given map.
|
Object2DoubleAVLTreeMap(Object2DoubleMap<? extends K> m)
Creates a new tree map copying a given map.
|
Object2DoubleLinkedOpenCustomHashMap(Object2DoubleMap<K> m,
float f,
Hash.Strategy<? super K> strategy)
Creates a new hash map copying a given type-specific one.
|
Object2DoubleLinkedOpenCustomHashMap(Object2DoubleMap<K> m,
Hash.Strategy<? super K> strategy)
Creates a new hash map with
Hash.DEFAULT_LOAD_FACTOR as load factor copying a given type-specific one. |
Object2DoubleLinkedOpenHashMap(Object2DoubleMap<K> m)
Creates a new hash map with
Hash.DEFAULT_LOAD_FACTOR as load factor copying a given type-specific one. |
Object2DoubleLinkedOpenHashMap(Object2DoubleMap<K> m,
float f)
Creates a new hash map copying a given type-specific one.
|
Object2DoubleOpenCustomHashMap(Object2DoubleMap<K> m,
float f,
Hash.Strategy<? super K> strategy)
Creates a new hash map copying a given type-specific one.
|
Object2DoubleOpenCustomHashMap(Object2DoubleMap<K> m,
Hash.Strategy<? super K> strategy)
Creates a new hash map with
Hash.DEFAULT_LOAD_FACTOR as load factor copying a given type-specific one. |
Object2DoubleOpenHashMap(Object2DoubleMap<K> m)
Creates a new hash map with
Hash.DEFAULT_LOAD_FACTOR as load factor copying a given type-specific one. |
Object2DoubleOpenHashMap(Object2DoubleMap<K> m,
float f)
Creates a new hash map copying a given type-specific one.
|
Object2DoubleRBTreeMap(Object2DoubleMap<? extends K> m)
Creates a new tree map copying a given map.
|
SynchronizedMap(Object2DoubleMap<K> m) |
SynchronizedMap(Object2DoubleMap<K> m,
Object sync) |
UnmodifiableMap(Object2DoubleMap<K> m) |
Copyright © 2020. All rights reserved.