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