public final class Present<T> extends java.lang.Object implements Optional<T>
Optional
null
Present(T value)
boolean
isPresent()
T
value()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Present(T value)
public boolean isPresent()
isPresent
Optional<T>
true
false
public T value() throws java.util.NoSuchElementException
value
java.util.NoSuchElementException