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