| Modifier and Type | Method and Description |
|---|---|
default Condition |
Condition.and(boolean other)
Logically AND current
Condition with the other boolean. |
default Condition |
Condition.and(Condition other)
Logically AND current
Condition with the other Condition. |
Condition |
Condition.and(Supplier<Boolean> clause)
Logically AND combine the current
Condition with the clause. |
default Condition |
Condition.flatMap(Function<Boolean,Condition> f)
Apply the function to the Condtion, resulting an another Condition.
|
default Condition |
Condition.not()
Negates the Condtion.
|
default Condition |
Condition.or(boolean other)
Logically OR the current
Condition with the other boolean. |
default Condition |
Condition.or(Condition other)
Logically OR the current
Condition with the other Condition. |
Condition |
Condition.or(Supplier<Boolean> clause)
Logically OR combine the current
Condition with the clause. |
default Condition |
Condition.otherwise(Supplier<Boolean> clause)
Create a new
Condition for the clause as a continuation to an existing Condition. |
Condition |
Condition.then(Action response)
Perform this response if the
Condition is true. |
static Condition |
Condition.where(boolean clause)
Create a new
Condition for the clause. |
| Modifier and Type | Method and Description |
|---|---|
default Condition |
Condition.and(Condition other)
Logically AND current
Condition with the other Condition. |
default Condition |
Condition.or(Condition other)
Logically OR the current
Condition with the other Condition. |
static <T> Value.ValueClause<T> |
Value.where(Condition clause)
Create a new
Value.ValueClause for the clause. |
static <T> Optional<T> |
Value.where(Condition clause,
Supplier<T> trueSupplier)
Return an Optional either containing a value, if the clause is true, or empty.
|
static <T> T |
Value.where(Condition clause,
Supplier<T> trueSupplier,
Supplier<T> falseSupplier)
Return one of two values depending on the value of a clause.
|
| Modifier and Type | Method and Description |
|---|---|
default Condition |
Condition.flatMap(Function<Boolean,Condition> f)
Apply the function to the Condtion, resulting an another Condition.
|
Copyright © 2015–2019. All rights reserved.