Module is.codion.common.reactive
Interface Conditional.OnCondition<T>
- Type Parameters:
T- the observed value type
- Enclosing interface:
Conditional<T>
public static interface Conditional.OnCondition<T>
Specifies what action to take on a given condition.
-
Method Summary
-
Method Details
-
run
Adds aRunnableto run when the condition is met.- Parameters:
runnable- the runnable to run- Returns:
- the
Conditionalfor further configuration
-
accept
Adds aConsumerto call when the condition is met.- Parameters:
consumer- the consumer to call with the observed value- Returns:
- the
Conditionalfor further configuration
-