Class Lazy<T> (1.13.5)

public class Lazy<T>

A thread-safe, lazily constructed instance of an object.

Inheritance

java.lang.Object > Lazy<T>

Type Parameter

Name Description
T

Constructors

Lazy(Supplier<T> supplier)

public Lazy(Supplier<T> supplier)
Parameter
Name Description
supplier Supplier<T>

Methods

get()

public synchronized T get()
Returns
Type Description
T