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