Top Description Fields Constructors Methods
org.hibernate.internal.util.collections

public final Class LockModeEnumMap<V>

extends LazyIndexedMap<LockMode, V>
Class Inheritance
Type Parameters
<V>
the value type to be associated with each key
Imports
java.util.function.Function, org.hibernate.LockMode

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.

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public V
computeIfAbsent(LockMode key, Function<LockMode, V> valueGenerator)

Inherited from org.hibernate.internal.util.collections.LazyIndexedMap:
computeIfAbsent

Field Detail

ENUM_DIMENSIONback to summary
private static final int ENUM_DIMENSION

Constructor Detail

LockModeEnumMapback to summary
public LockModeEnumMap()

Method Detail

computeIfAbsentback to summary
public V computeIfAbsent(LockMode key, Function<LockMode, V> valueGenerator)