Package org.dmfs.jems2.optional
Class Restrained<T>
- java.lang.Object
-
- org.dmfs.jems2.optional.Restrained<T>
-
-
Constructor Summary
Constructors Constructor Description Restrained(Single<java.lang.Boolean> condition, Optional<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPresent()Returns whether the optional value is present.Tvalue()Returns the optional value.
-
-
-
Method Detail
-
isPresent
public boolean isPresent()
Description copied from interface:OptionalReturns whether the optional value is present.
-
-