Modul speiger.src.collections
Klasse Object2ByteMaps
java.lang.Object
speiger.src.collections.objects.utils.maps.Object2ByteMaps
A Helper class that provides you with Singleton/Empty/Synchronized/Unmodifyable Maps
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classEmpty Map impementation that is used for the emptyMap() functionstatic classSingleton Map instance that is used in the helper methodstatic classThe Synchronized Map implementation used by the synchronizedMap helper functionstatic classThe Synchronized Navigable Map implementation used by the synchronizedMap helper functionstatic classThe Synchronized Ordered Map implementation used by the synchronizedMap helper functionstatic classThe Synchronized Sorted Map implementation used by the synchronizedMap helper functionstatic classThe Unmodifyable Entry implementation for the helper function unmodifiableEntry()static classThe Unmodifyable Set implementation for the Unmodifyable Map implementationstatic classThe Unmodifyable Map implementation that is sued for the unmodifyableMap functionstatic classThe Unmodifyable Navigable Map implementation that is sued for the unmodifyableMap functionstatic classThe Unmodifyable Ordered Set implementation for the Unmodifyable Ordered Map implementationstatic classThe Unmodifyable Ordered Map implementation that is sued for the unmodifyableMap functionstatic classThe Unmodifyable Sorted Map implementation that is sued for the unmodifyableMap function -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T> Object2ByteMap<T>empty()Empty Map getter function that autocasts to the desired Key and Valuestatic <T> voidfastForEach(Object2ByteMap<T> map, Consumer<Object2ByteMap.Entry<T>> action) A Helper function that provides a faster forEach iterator implementation that recycles the entry to increase throughputstatic <T> ObjectIterable<Object2ByteMap.Entry<T>>fastIterable(Object2ByteMap<T> map) Helper method that provides the fastIterable that recycles a single Entry to increase throughput.static <T> ObjectIterator<Object2ByteMap.Entry<T>>fastIterator(Object2ByteMap<T> map) Helper method that provides the fastIterator that recycles a single Entry to increase throughput.static <T> Object2ByteMap<T>singleton(T key, byte value) Creates a Singleton map from the provided values.static <T> Object2ByteMap<T>synchronize(Object2ByteMap<T> map) Helper function that creates a Helper wrapper to synchronize access into the map.static <T> Object2ByteMap<T>synchronize(Object2ByteMap<T> map, Object mutex) Helper function that creates a Helper wrapper to synchronize access with custom access control into the map.static <T> Object2ByteNavigableMap<T>synchronize(Object2ByteNavigableMap<T> map) Helper function that creates a Helper wrapper to synchronize access into the NavigableMap.static <T> Object2ByteNavigableMap<T>synchronize(Object2ByteNavigableMap<T> map, Object mutex) Helper function that creates a Helper wrapper to synchronize access with custom access control into the NavigableMap.static <T> Object2ByteOrderedMap<T>synchronize(Object2ByteOrderedMap<T> map) Helper function that creates a Helper wrapper to synchronize access into the OrderedMap.static <T> Object2ByteOrderedMap<T>synchronize(Object2ByteOrderedMap<T> map, Object mutex) Helper function that creates a Helper wrapper to synchronize access with custom access control into the OrderedMap.static <T> Object2ByteSortedMap<T>synchronize(Object2ByteSortedMap<T> map) Helper function that creates a Helper wrapper to synchronize access into the SortedMap.static <T> Object2ByteSortedMap<T>synchronize(Object2ByteSortedMap<T> map, Object mutex) Helper function that creates a Helper wrapper to synchronize access with custom access control into the SortedMap.static <T> Object2ByteMap.Entry<T>unmodifiable(Map.Entry<T, Byte> entry) A Helper function that creates a Unmodifyable Entrystatic <T> Object2ByteMap.Entry<T>unmodifiable(Object2ByteMap.Entry<T> entry) A Helper function that creates a Unmodifyable Entrystatic <T> Object2ByteMap<T>unmodifiable(Object2ByteMap<T> map) A Helper function that creates a Helper wrapper to only allow Read Access into the Mapstatic <T> Object2ByteNavigableMap<T>unmodifiable(Object2ByteNavigableMap<T> map) A Helper function that creates a Helper wrapper to only allow Read Access into NavigableMap Mapstatic <T> Object2ByteOrderedMap<T>unmodifiable(Object2ByteOrderedMap<T> map) A Helper function that creates a Helper wrapper to only allow Read Access into the OrderedMapstatic <T> Object2ByteSortedMap<T>unmodifiable(Object2ByteSortedMap<T> map) A Helper function that creates a Helper wrapper to only allow Read Access into the SortedMap
-
Konstruktordetails
-
Object2ByteMaps
public Object2ByteMaps()
-
-
Methodendetails
-
empty
Empty Map getter function that autocasts to the desired Key and Value- Typparameter:
T- the keyType of elements maintained by this Collection- Gibt zurück:
- empty map of desired type
-
fastIterator
Helper method that provides the fastIterator that recycles a single Entry to increase throughput.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the map the fastIterator should be accessed from- Gibt zurück:
- either a normal iterator if it does not support this feature to a fastIterator
-
fastIterable
Helper method that provides the fastIterable that recycles a single Entry to increase throughput.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the map the fastIterable should be accessed from- Gibt zurück:
- either a normal iterable if it does not support this feature to a fastIterable
-
fastForEach
A Helper function that provides a faster forEach iterator implementation that recycles the entry to increase throughput- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the map the fast forEach should be accessed fromaction- the action that should be performed on each entry- Note:
- if the fast forEach is not supported will default to a normal forEach
-
synchronize
Helper function that creates a Helper wrapper to synchronize access into the map.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the map that should be synchronized- Gibt zurück:
- a synchronized Map
- Note:
- if the inputted map is already synchronized then it will just return it instead, iterators do not support synchronization
-
synchronize
Helper function that creates a Helper wrapper to synchronize access with custom access control into the map.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the map that should be synchronizedmutex- the object that controls access- Gibt zurück:
- a synchronized Map
- Note:
- if the inputted map is already synchronized then it will just return it instead, iterators do not support synchronization
-
synchronize
Helper function that creates a Helper wrapper to synchronize access into the SortedMap.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the SortedMap that should be synchronized- Gibt zurück:
- a synchronized SortedMap
- Note:
- if the inputted map is already synchronized then it will just return it instead, iterators do not support synchronization
-
synchronize
Helper function that creates a Helper wrapper to synchronize access with custom access control into the SortedMap.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the SortedMap that should be synchronizedmutex- the object that controls access- Gibt zurück:
- a synchronized SortedMap
- Note:
- if the inputted map is already synchronized then it will just return it instead, iterators do not support synchronization
-
synchronize
Helper function that creates a Helper wrapper to synchronize access into the OrderedMap.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the OrderedMap that should be synchronized- Gibt zurück:
- a synchronized OrderedMap
- Note:
- if the inputted map is already synchronized then it will just return it instead, iterators do not support synchronization
-
synchronize
Helper function that creates a Helper wrapper to synchronize access with custom access control into the OrderedMap.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the OrderedMap that should be synchronizedmutex- the object that controls access- Gibt zurück:
- a synchronized OrderedMap
- Note:
- if the inputted map is already synchronized then it will just return it instead, iterators do not support synchronization
-
unmodifiable
A Helper function that creates a Helper wrapper to only allow Read Access into the Map- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the map that should be made Unmodifiable- Gibt zurück:
- a unmodifiable Map
- Note:
- if the inputted map is already unmodifiable then it will just return it instead
-
unmodifiable
A Helper function that creates a Helper wrapper to only allow Read Access into the OrderedMap- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the OrderedMap that should be made Unmodifiable- Gibt zurück:
- a unmodifiable OrderedMap
- Note:
- if the inputted OrderedMap is already unmodifiable then it will just return it instead
-
unmodifiable
A Helper function that creates a Helper wrapper to only allow Read Access into the SortedMap- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
map- the SortedMap that should be made Unmodifiable- Gibt zurück:
- a unmodifiable SortedMap
- Note:
- if the inputted SortedMap is already unmodifiable then it will just return it instead
-
unmodifiable
A Helper function that creates a Unmodifyable Entry- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
entry- the Entry that should be made unmodifiable- Gibt zurück:
- a Unmodifyable Entry
-
unmodifiable
A Helper function that creates a Unmodifyable Entry- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
entry- the Entry that should be made unmodifiable- Gibt zurück:
- a Unmodifyable Entry
-
singleton
Creates a Singleton map from the provided values. This reduces overhead that normal Map implementations have.- Typparameter:
T- the keyType of elements maintained by this Collection- Parameter:
key- the key that should be turned into a singletonvalue- the value that should be turned into a singleton- Gibt zurück:
- a unmodifiable Singleton map.
-