public class Long2ObjectMaps
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Long2ObjectMaps.EmptyMap<V>
Empty Map impementation that is used for the emptyMap() function
|
static class |
Long2ObjectMaps.SingletonMap<V>
Singleton Map instance that is used in the helper method
|
static class |
Long2ObjectMaps.SynchronizedMap<V>
The Synchronized Map implementation used by the synchronizedMap helper function
|
static class |
Long2ObjectMaps.SynchronizedNavigableMap<V>
The Synchronized Navigable Map implementation used by the synchronizedMap helper function
|
static class |
Long2ObjectMaps.SynchronizedOrderedMap<V>
The Synchronized Ordered Map implementation used by the synchronizedMap helper function
|
static class |
Long2ObjectMaps.SynchronizedSortedMap<V>
The Synchronized Sorted Map implementation used by the synchronizedMap helper function
|
static class |
Long2ObjectMaps.UnmodifyableEntry<V>
The Unmodifyable Entry implementation for the helper function unmodifiableEntry()
|
static class |
Long2ObjectMaps.UnmodifyableEntrySet<V>
The Unmodifyable Set implementation for the Unmodifyable Map implementation
|
static class |
Long2ObjectMaps.UnmodifyableMap<V>
The Unmodifyable Map implementation that is sued for the unmodifyableMap function
|
static class |
Long2ObjectMaps.UnmodifyableNavigableMap<V>
The Unmodifyable Navigable Map implementation that is sued for the unmodifyableMap function
|
static class |
Long2ObjectMaps.UnmodifyableOrderedEntrySet<V>
The Unmodifyable Ordered Set implementation for the Unmodifyable Ordered Map implementation
|
static class |
Long2ObjectMaps.UnmodifyableOrderedMap<V>
The Unmodifyable Ordered Map implementation that is sued for the unmodifyableMap function
|
static class |
Long2ObjectMaps.UnmodifyableSortedMap<V>
The Unmodifyable Sorted Map implementation that is sued for the unmodifyableMap function
|
| Constructor and Description |
|---|
Long2ObjectMaps() |
| Modifier and Type | Method and Description |
|---|---|
static <V> Long2ObjectMap<V> |
empty()
Empty Map getter function that autocasts to the desired Key and Value
|
static <V> void |
fastForEach(Long2ObjectMap<V> map,
java.util.function.Consumer<Long2ObjectMap.Entry<V>> action)
A Helper function that provides a faster forEach iterator implementation that recycles the entry to increase throughput
|
static <V> ObjectIterable<Long2ObjectMap.Entry<V>> |
fastIterable(Long2ObjectMap<V> map)
Helper method that provides the fastIterable that recycles a single Entry to increase throughput.
|
static <V> ObjectIterator<Long2ObjectMap.Entry<V>> |
fastIterator(Long2ObjectMap<V> map)
Helper method that provides the fastIterator that recycles a single Entry to increase throughput.
|
static <V> Long2ObjectMap<V> |
singleton(long key,
V value)
Creates a Singleton map from the provided values.
|
static <V> Long2ObjectMap<V> |
synchronize(Long2ObjectMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the map.
|
static <V> Long2ObjectMap<V> |
synchronize(Long2ObjectMap<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> Long2ObjectNavigableMap<V> |
synchronize(Long2ObjectNavigableMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the NavigableMap.
|
static <V> Long2ObjectNavigableMap<V> |
synchronize(Long2ObjectNavigableMap<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> Long2ObjectOrderedMap<V> |
synchronize(Long2ObjectOrderedMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the OrderedMap.
|
static <V> Long2ObjectOrderedMap<V> |
synchronize(Long2ObjectOrderedMap<V> map,
java.lang.Object mutex)
Helper function that creates a Helper wrapper to synchronize access with custom access control into the OrderedMap.
|
static <V> Long2ObjectSortedMap<V> |
synchronize(Long2ObjectSortedMap<V> map)
Helper function that creates a Helper wrapper to synchronize access into the SortedMap.
|
static <V> Long2ObjectSortedMap<V> |
synchronize(Long2ObjectSortedMap<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> Long2ObjectMap.Entry<V> |
unmodifiable(Long2ObjectMap.Entry<V> entry)
A Helper function that creates a Unmodifyable Entry
|
static <V> Long2ObjectMap<V> |
unmodifiable(Long2ObjectMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into the Map
|
static <V> Long2ObjectNavigableMap<V> |
unmodifiable(Long2ObjectNavigableMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into NavigableMap Map
|
static <V> Long2ObjectOrderedMap<V> |
unmodifiable(Long2ObjectOrderedMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into the OrderedMap
|
static <V> Long2ObjectSortedMap<V> |
unmodifiable(Long2ObjectSortedMap<V> map)
A Helper function that creates a Helper wrapper to only allow Read Access into the SortedMap
|
static <V> Long2ObjectMap.Entry<V> |
unmodifiable(java.util.Map.Entry<java.lang.Long,V> entry)
A Helper function that creates a Unmodifyable Entry
|
public static <V> Long2ObjectMap<V> empty()
V - the keyType of elements maintained by this Collectionpublic static <V> ObjectIterator<Long2ObjectMap.Entry<V>> fastIterator(Long2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the map the fastIterator should be accessed frompublic static <V> ObjectIterable<Long2ObjectMap.Entry<V>> fastIterable(Long2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the map the fastIterable should be accessed frompublic static <V> void fastForEach(Long2ObjectMap<V> map, java.util.function.Consumer<Long2ObjectMap.Entry<V>> action)
V - the keyType 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> Long2ObjectMap<V> synchronize(Long2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the map that should be synchronizedpublic static <V> Long2ObjectMap<V> synchronize(Long2ObjectMap<V> map, java.lang.Object mutex)
V - the keyType of elements maintained by this Collectionmap - the map that should be synchronizedmutex - the object that controls accesspublic static <V> Long2ObjectSortedMap<V> synchronize(Long2ObjectSortedMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the SortedMap that should be synchronizedpublic static <V> Long2ObjectSortedMap<V> synchronize(Long2ObjectSortedMap<V> map, java.lang.Object mutex)
V - the keyType of elements maintained by this Collectionmap - the SortedMap that should be synchronizedmutex - the object that controls accesspublic static <V> Long2ObjectOrderedMap<V> synchronize(Long2ObjectOrderedMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the OrderedMap that should be synchronizedpublic static <V> Long2ObjectOrderedMap<V> synchronize(Long2ObjectOrderedMap<V> map, java.lang.Object mutex)
V - the keyType of elements maintained by this Collectionmap - the OrderedMap that should be synchronizedmutex - the object that controls accesspublic static <V> Long2ObjectNavigableMap<V> synchronize(Long2ObjectNavigableMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the NavigableMap that should be synchronizedpublic static <V> Long2ObjectNavigableMap<V> synchronize(Long2ObjectNavigableMap<V> map, java.lang.Object mutex)
V - the keyType of elements maintained by this Collectionmap - the NavigableMap that should be synchronizedmutex - the object that controls accesspublic static <V> Long2ObjectMap<V> unmodifiable(Long2ObjectMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the map that should be made Unmodifiablepublic static <V> Long2ObjectOrderedMap<V> unmodifiable(Long2ObjectOrderedMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the OrderedMap that should be made Unmodifiablepublic static <V> Long2ObjectSortedMap<V> unmodifiable(Long2ObjectSortedMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the SortedMap that should be made Unmodifiablepublic static <V> Long2ObjectNavigableMap<V> unmodifiable(Long2ObjectNavigableMap<V> map)
V - the keyType of elements maintained by this Collectionmap - the NavigableMap that should be made Unmodifiablepublic static <V> Long2ObjectMap.Entry<V> unmodifiable(Long2ObjectMap.Entry<V> entry)
V - the keyType of elements maintained by this Collectionentry - the Entry that should be made unmodifiablepublic static <V> Long2ObjectMap.Entry<V> unmodifiable(java.util.Map.Entry<java.lang.Long,V> entry)
V - the keyType of elements maintained by this Collectionentry - the Entry that should be made unmodifiablepublic static <V> Long2ObjectMap<V> singleton(long key, V value)
V - the keyType of elements maintained by this Collectionkey - the key that should be turned into a singletonvalue - the value that should be turned into a singleton