Interface CaseWhenThenBuilder<T extends CaseWhenBuilder<?>>

Type Parameters:
T - The builder type that is returned on terminal operations
All Known Subinterfaces:
CaseWhenAndThenBuilder<T>, CaseWhenOrThenBuilder<T>

public interface CaseWhenThenBuilder<T extends CaseWhenBuilder<?>>
A builder that can terminate the build process for general case when expressions.
Since:
1.0.0
Author:
Christian Beikov
  • Method Summary

    Modifier and Type
    Method
    Description
    then(Object value)
    Adds the constructed when expression with the then parameter value to the case when builder.
    thenExpression(String expression)
    Adds the constructed when expression with the then expression to the case when builder.
    Adds the constructed when expression with the then parameter value to the case when builder rendered as literal.
  • Method Details

    • thenExpression

      T thenExpression(String expression)
      Adds the constructed when expression with the then expression to the case when builder.
      Parameters:
      expression - The then expression
      Returns:
      This case when builder
    • thenLiteral

      T thenLiteral(Object value)
      Adds the constructed when expression with the then parameter value to the case when builder rendered as literal.
      Parameters:
      value - The then parameter value
      Returns:
      This case when builder
      Since:
      1.4.0
    • then

      T then(Object value)
      Adds the constructed when expression with the then parameter value to the case when builder.
      Parameters:
      value - The then parameter value
      Returns:
      This case when builder