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