K - the conflation key typeV - the value typefinal class Entry<K,V> extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) K |
key |
(package private) java.util.concurrent.atomic.AtomicReference<V> |
value |
| Constructor and Description |
|---|
Entry(K key,
V value)
Constructor with conflation key and value
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static <K extends java.lang.Enum<K>,V> |
eagerlyInitialiseEntryEnumMap(java.lang.Class<K> keyClass,
java.util.function.Supplier<V> valueFactory)
Eagerly initializes an enum map using all enum constants as keys and creating values with the given value factory.
|
(package private) static <K,V> java.util.Map<K,Entry<K,V>> |
eagerlyInitialiseEntryMap(java.util.List<? extends K> allKeys,
java.util.function.Supplier<V> valueFactory)
Eagerly initializes a hash map using all provided keys and creating values with the given value factory.
|
static <K,V> java.util.Map<K,Entry<K,V>> eagerlyInitialiseEntryMap(java.util.List<? extends K> allKeys, java.util.function.Supplier<V> valueFactory)
K - the conflation key typeV - the value typeallKeys - a list with all conflation keysvalueFactory - the value factorystatic <K extends java.lang.Enum<K>,V> java.util.Map<K,Entry<K,V>> eagerlyInitialiseEntryEnumMap(java.lang.Class<K> keyClass, java.util.function.Supplier<V> valueFactory)
K - the conflation key typeV - the value typekeyClass - the enum key classvalueFactory - the value factory