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