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