- Enclosing interface:
- Case
@API(status=STABLE,
since="1.0")
public static interface Case.OngoingWhenThen
Helper class to collect `when` expressions and create
CaseWhenThen instances when the `then` is provided.-
Method Summary
Modifier and TypeMethodDescription@NotNull Case.CaseEndingthen(Expression expression) Ends thisWHENblock with an expression.
-
Method Details
-
then
Ends thisWHENblock with an expression.- Parameters:
expression- The expression for the ongoingWHENblock.- Returns:
- An ongoing when builder.
-