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