T - the type of the valuepublic static interface Value.ValueClause.ValueSupplier<T>
Value.| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
optional()
Returns the value in an Optional if the
Value.ValueClause is true, or an empty Optional if it is false. |
T |
otherwise(Supplier<T> falseSupplier)
Determine the value by whether the
Value.ValueClause was true or false. |
T otherwise(Supplier<T> falseSupplier)
Value.ValueClause was true or false.falseSupplier - the Supplier for the false valueOptional<T> optional()
Value.ValueClause is true, or an empty Optional if it is false.Copyright © 2015–2018. All rights reserved.