public class Short2ObjectMaps
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Short2ObjectMaps.EmptyMap<V>
Empty Map impementation that is used for the emptyMap() function
|
static class |
Short2ObjectMaps.SingletonMap<V>
Singleton Map instance that is used in the helper method
|
static class |
Short2ObjectMaps.SynchronizedMap<V>
The Synchronized Map implementation used by the synchronizedMap helper function
|
static class |
Short2ObjectMaps.SynchronizedNavigableMap<V>
The Synchronized Navigable Map implementation used by the synchronizedMap helper function
|
static class |
Short2ObjectMaps.SynchronizedSortedMap<V>
The Synchronized Sorted Map implementation used by the synchronizedMap helper function
|
static class |
Short2ObjectMaps.UnmodifyableEntry<V>
The Unmodifyable Entry implementation for the helper function unmodifiableEntry()
|
static class |
Short2ObjectMaps.UnmodifyableEntrySet<V>
The Unmodifyable Set implementation for the Unmodifyable Map implementation
|
static class |
Short2ObjectMaps.UnmodifyableMap<V>
The Unmodifyable Map implementation that is sued for the unmodifyableMap function
|
static class |
Short2ObjectMaps.UnmodifyableNavigableMap<V>
The Unmodifyable Navigable Map implementation that is sued for the unmodifyableMap function
|
static class |
Short2ObjectMaps.UnmodifyableSortedMap<V>
The Unmodifyable Sorted Map implementation that is sued for the unmodifyableMap function
|
| Modifier and Type | Field and Description |
|---|---|
static Short2ObjectMap<?> |
EMPTY
Empty Map Variable
|
| Constructor and Description |
|---|
Short2ObjectMaps() |
| Modifier and Type | Method and Description |
|---|---|
static <V> Short2ObjectMap<V> |
emptyMap()
Empty Map getter function that autocasts to the desired Key and Value
|
static <V> void |
fastForEach(Short2ObjectMap<V> map,
java.util.function.Consumer<Short2ObjectMap.Entry<V>> action)
A Helper function that provides a faster forEach iterator implementation that recycles the entry to increase throughput
|
static <V> ObjectIterable<Short2ObjectMap.Entry<V>> |
fastIterable(Short2ObjectMap<V> map)
Helper method that provides the fastIterable that recycles a single Entry to increase throughput.
|
static <V> ObjectIterator<Short2ObjectMap.Entry<V>> |
fastIterator(Short2ObjectMap<V> map)
Helper method that provides the fastIterator that recycles a single Entry to increase throughput.
|
static <V> Short2ObjectMap<V> |
singletonMap(short key,
V value)
Creates a Singleton map from the provided values.
|
static <V> Short2ObjectMap<V> |
synchronizeMap(Short2ObjectMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the map.
|
static <V> Short2ObjectMap<V> |
synchronizeMap(Short2ObjectMap<V> map,
java.lang.Object mutex)
Helper function that creates a Helper wrapper to synchronize access with custom access control into the map.
|
static <V> Short2ObjectNavigableMap<V> |
synchronizeMap(Short2ObjectNavigableMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the NavigableMap.
|
static <V> Short2ObjectNavigableMap<V> |
synchronizeMap(Short2ObjectNavigableMap<V> map,
java.lang.Object mutex)
Helper function that creates a Helper wrapper to synchronize access with custom access control into the NavigableMap.
|
static <V> Short2ObjectSortedMap<V> |
synchronizeMap(Short2ObjectSortedMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the SortedMap.
|
static <V> Short2ObjectSortedMap<V> |
synchronizeMap(Short2ObjectSortedMap<V> map,
java.lang.Object mutex)
Helper function that creates a Helper wrapper to synchronize access with custom access control into the SortedMap.
|
static <V> Short2ObjectMap.Entry<V> |
unmodifyableEntry(java.util.Map.Entry<java.lang.Short,V> entry)
A Helper function that creates a Unmodifyable Entry
|
static <V> Short2ObjectMap.Entry<V> |
unmodifyableEntry(Short2ObjectMap.Entry<V> entry)
A Helper function that creates a Unmodifyable Entry
|
static <V> Short2ObjectMap<V> |
unmodifyableMap(Short2ObjectMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into the Map
|
static <V> Short2ObjectNavigableMap<V> |
unmodifyableMap(Short2ObjectNavigableMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into NavigableMap Map
|
static <V> Short2ObjectSortedMap<V> |
unmodifyableMap(Short2ObjectSortedMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into the SortedMap
|
public static final Short2ObjectMap<?> EMPTY
public static <V> ObjectIterator<Short2ObjectMap.Entry<V>> fastIterator(Short2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - the map the fastIterator should be accessed frompublic static <V> ObjectIterable<Short2ObjectMap.Entry<V>> fastIterable(Short2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - the map the fastIterable should be accessed frompublic static <V> void fastForEach(Short2ObjectMap<V> map, java.util.function.Consumer<Short2ObjectMap.Entry<V>> action)
V - the type of elements maintained by this Collectionmap - the map the fast forEach should be accessed fromaction - the action that should be performed on each entrypublic static <V> Short2ObjectMap<V> emptyMap()
V - the type of elements maintained by this Collectionpublic static <V> Short2ObjectMap<V> synchronizeMap(Short2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - the map that should be synchronizedpublic static <V> Short2ObjectMap<V> synchronizeMap(Short2ObjectMap<V> map, java.lang.Object mutex)
V - the type of elements maintained by this Collectionmap - the map that should be synchronizedmutex - the object that controls accesspublic static <V> Short2ObjectSortedMap<V> synchronizeMap(Short2ObjectSortedMap<V> map)
V - the type of elements maintained by this Collectionmap - the SortedMap that should be synchronizedpublic static <V> Short2ObjectSortedMap<V> synchronizeMap(Short2ObjectSortedMap<V> map, java.lang.Object mutex)
V - the type of elements maintained by this Collectionmap - the SortedMap that should be synchronizedmutex - the object that controls accesspublic static <V> Short2ObjectNavigableMap<V> synchronizeMap(Short2ObjectNavigableMap<V> map)
V - the type of elements maintained by this Collectionmap - the NavigableMap that should be synchronizedpublic static <V> Short2ObjectNavigableMap<V> synchronizeMap(Short2ObjectNavigableMap<V> map, java.lang.Object mutex)
V - the type of elements maintained by this Collectionmap - the NavigableMap that should be synchronizedmutex - the object that controls accesspublic static <V> Short2ObjectMap<V> unmodifyableMap(Short2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - the map that should be made Unmodifiablepublic static <V> Short2ObjectSortedMap<V> unmodifyableMap(Short2ObjectSortedMap<V> map)
V - the type of elements maintained by this Collectionmap - the SortedMap that should be made Unmodifiablepublic static <V> Short2ObjectNavigableMap<V> unmodifyableMap(Short2ObjectNavigableMap<V> map)
V - the type of elements maintained by this Collectionmap - the NavigableMap that should be made Unmodifiablepublic static <V> Short2ObjectMap.Entry<V> unmodifyableEntry(Short2ObjectMap.Entry<V> entry)
V - the type of elements maintained by this Collectionentry - the Entry that should be made unmodifyablepublic static <V> Short2ObjectMap.Entry<V> unmodifyableEntry(java.util.Map.Entry<java.lang.Short,V> entry)
V - the type of elements maintained by this Collectionentry - the Entry that should be made unmodifyablepublic static <V> Short2ObjectMap<V> singletonMap(short key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be turned into a singletonvalue - the value that should be turned into a singleton