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