@ThreadSafe public final class Value<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Gets the value
|
static <T> Value<T> |
none()
Creates a new null value
|
static <T> Value<T> |
of(T t)
Creates a new value which has the initial state set to the provided object
|
T |
set(T t)
Sets the value
|
public static <T> Value<T> of(T t)
T - the value typet - the value to holdpublic static <T> Value<T> none()
T - the value typeCopyright © 2016. All rights reserved.