- All Implemented Interfaces:
Optional<T>
Deprecated.
Optional decorator restrains the presence of another
Optional with a specific (independent) condition.
-
Constructor Summary
Constructors
-
Method Summary
boolean
Deprecated.
Returns whether the optional value is present.
Deprecated.
Returns the optional value.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
isPresent
public boolean isPresent()
Deprecated.
Description copied from interface: Optional
Returns whether the optional value is present.
- Specified by:
isPresent in interface Optional<T>
-
value
Deprecated.
Description copied from interface: Optional
Returns the optional value.
- Specified by:
value in interface Optional<T>
If, which expresses the intent more clearly.