Class LockModeEnumMap<V>
- java.lang.Object
-
- org.hibernate.internal.util.collections.LazyIndexedMap<LockMode,V>
-
- org.hibernate.internal.util.collections.LockModeEnumMap<V>
-
- Type Parameters:
V
- the value type to be associated with each key
public final class LockModeEnumMap<V> extends LazyIndexedMap<LockMode,V>
A concurrent safe EnumMap<LockMode>, suitable to lazily associate values to the enum keys. This implementation favours fast read operations and low memory consumption over other metrics. Specifically designed with specific use cases in mind: do not overly reuse without good reasons.
-
-
Constructor Summary
Constructors Constructor Description LockModeEnumMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
computeIfAbsent(LockMode key, Function<LockMode,V> valueGenerator)
-
Methods inherited from class org.hibernate.internal.util.collections.LazyIndexedMap
computeIfAbsent
-
-