Package org.dmfs.jems2.optional
Class LazyDelegatingOptional<T>
java.lang.Object
org.dmfs.jems2.optional.LazyDelegatingOptional<T>
- All Implemented Interfaces:
Optional<T>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LazyDelegatingOptional
-
-
Method Details
-
isPresent
public final boolean isPresent()Description copied from interface:OptionalReturns whether the optional value is present. -
value
Description copied from interface:OptionalReturns the optional value.- Specified by:
valuein interfaceOptional<T>- Throws:
NoSuchElementException- if the optional value is not present.
-