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