- 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.CaseEnding
then
(Expression expression) Ends thisWHEN
block with an expression.
-
Method Details
-
then
Ends thisWHEN
block with an expression.- Parameters:
expression
- The expression for the ongoingWHEN
block.- Returns:
- An ongoing when builder.
-