public class Optional<T> extends java.lang.Object
private T
value
private
Optional(T value)
void
ifPresent(Consumer<T> consumer)
static <T> Optional<T>
ofNullable(T value)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private final T value
private Optional(T value)
public void ifPresent(Consumer<T> consumer)
public static <T> Optional<T> ofNullable(T value)