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