Interface Case.OngoingWhenThen

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 Type
    Method
    Description
    then(Expression expression)
    Ends this WHEN block with an expression.
  • Method Details

    • then

      @NotNull @CheckReturnValue @NotNull Case.CaseEnding then(Expression expression)
      Ends this WHEN block with an expression.
      Parameters:
      expression - The expression for the ongoing WHEN block.
      Returns:
      An ongoing when builder.