public interface Value
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Value.ValueClause<T>
An intermediate state in determining the final
Value. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Value.ValueClause<T> |
where(boolean clause)
Create a new
Value.ValueClause for the clause. |
static <T> Optional<T> |
where(boolean clause,
Supplier<T> trueSupplier)
Return an Optional either containing a value, if the clause is true, or empty.
|
static <T> T |
where(boolean clause,
Supplier<T> trueSupplier,
Supplier<T> falseSupplier)
Return one of two values depending on the value of a clause.
|
static <T> Value.ValueClause<T> |
where(Condition clause)
Create a new
Value.ValueClause for the clause. |
static <T> Optional<T> |
where(Condition clause,
Supplier<T> trueSupplier)
Return an Optional either containing a value, if the clause is true, or empty.
|
static <T> T |
where(Condition clause,
Supplier<T> trueSupplier,
Supplier<T> falseSupplier)
Return one of two values depending on the value of a clause.
|
static <T> T where(boolean clause,
Supplier<T> trueSupplier,
Supplier<T> falseSupplier)
T - The type of the valueclause - The deciding clausetrueSupplier - The supplier to provide the value when the clause is truefalseSupplier - The supplier to provide the value when the clause is falsestatic <T> T where(Condition clause, Supplier<T> trueSupplier, Supplier<T> falseSupplier)
T - The type of the valueclause - The deciding clausetrueSupplier - The supplier to provide the value when the clause is truefalseSupplier - The supplier to provide the value when the clause is falsestatic <T> Optional<T> where(boolean clause, Supplier<T> trueSupplier)
T - The type of the valueclause - The deciding clausetrueSupplier - The supplier to provide the value when the clause is truestatic <T> Optional<T> where(Condition clause, Supplier<T> trueSupplier)
T - The type of the valueclause - The deciding clausetrueSupplier - The supplier to provide the value when the clause is truestatic <T> Value.ValueClause<T> where(boolean clause)
Value.ValueClause for the clause.T - the type of the valueclause - the condition to teststatic <T> Value.ValueClause<T> where(Condition clause)
Value.ValueClause for the clause.T - the type of the valueclause - the condition to testCopyright © 2015–2019. All rights reserved.