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