public class Optional<T> extends Object
static <T> Optional<T>
empty(String errMessage)
T
get()
String
getErrorMessage()
boolean
isPresent()
of(T value)
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <T> Optional<T> empty(String errMessage)
public static <T> Optional<T> of(T value)
public T get()
public boolean isPresent()
public String getErrorMessage()