Package org.hibernate.internal.util
Class ValueHolder<T>
java.lang.Object
org.hibernate.internal.util.ValueHolder<T>
Represents a "final" value that is initialized either
up front or once at some point
after declaration.
Note: If a Serializable class has a ValueHolder property, that property should be declared transient!-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe snippet that generates the initialization value. -
Constructor Summary
ConstructorsConstructorDescriptionValueHolder(ValueHolder.DeferredInitializer<T> valueInitializer) Instantiates aValueHolderwith the specified initializer.ValueHolder(T value) -
Method Summary
-
Constructor Details
-
ValueHolder
Instantiates aValueHolderwith the specified initializer.- Parameters:
valueInitializer- The initializer to use ingetValue()when value not yet known.
-
ValueHolder
-
-
Method Details
-
getValue
-