Interface Case.OngoingWhenThen

  • Enclosing interface:
    Case

    @API(status=EXPERIMENTAL,
         since="1.0")
    public static interface Case.OngoingWhenThen
    Helper class to collect `when` expressions and create CaseWhenThen instances when the `then` is provided.
    • Method Detail

      • 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.