Class LazyValue<T>
- java.lang.Object
-
- com.github.victools.jsonschema.generator.impl.LazyValue<T>
-
- Type Parameters:
T
- type of wrapped value
public class LazyValue<T> extends Object
Wrapper for a value that should only be lazily initialised when being accessed for the first time.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
Look-up the wrapped value, loading it on first invocation.
-
-
-
Method Detail
-
get
public T get()
Look-up the wrapped value, loading it on first invocation.- Returns:
- wrapped value
-
-