Modifier and Type | Method and Description |
---|---|
T |
get() |
static <T extends java.io.Serializable> |
of(T object)
Factory method for Value which uses type inference to make code shorter.
|
public Value(T object)
public static <T extends java.io.Serializable> Value<T> of(T object)
new Value<TypeOfObject>(object)
.T
- object
- object