@Deprecated
public class Optional<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
empty(java.lang.String errMessage)
Deprecated.
|
T |
get()
Deprecated.
|
java.lang.String |
getErrorMessage()
Deprecated.
|
boolean |
isPresent()
Deprecated.
|
static <T> Optional<T> |
of(T value)
Deprecated.
|
public static <T> Optional<T> empty(java.lang.String errMessage)
public static <T> Optional<T> of(T value)
public T get()
public boolean isPresent()
public java.lang.String getErrorMessage()