public class LazyValue<T>
extends java.lang.Object
implements java.util.function.Supplier<T>
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the value.
|
static <T> LazyValue<T> |
of(java.util.function.Supplier<T> supplier)
Creates new instance of LazyValue.
|
java.util.Optional<T> |
optional()
Returns an optional of current value.
|
public static <T> LazyValue<T> of(java.util.function.Supplier<T> supplier)
public T get()
get in interface java.util.function.Supplier<T>public java.util.Optional<T> optional()
Copyright © 2003-present Jodd Team