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