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