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

public Class LazyValue<T>

extends Object
Class Inheritance
Type Parameters
<T>
The type of object referenced
Imports
java.util.Objects, java.util.function.Supplier

A lazily accessible object reference. Useful for cases where final references are needed (anon inner class, lambdas, etc).

Field Summary

Modifier and TypeField and Description
public static final Object
private final Supplier<T>
private Object

Constructor Summary

AccessConstructor and Description
public
LazyValue(Supplier<T> supplier)

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NULLback to summary
public static final Object NULL
supplierback to summary
private final Supplier<T> supplier
valueback to summary
private Object value

Constructor Detail

LazyValueback to summary
public LazyValue(Supplier<T> supplier)

Method Detail

getValueback to summary
public T getValue()