Class Case.CaseWhenThen

  • All Implemented Interfaces:
    Visitable
    Enclosing class:
    Case

    @API(status=INTERNAL,
         since="1.0")
    public final class Case.CaseWhenThen
    extends java.lang.Object
    implements Visitable
    Represents a pair of `when-then` expressions.
    • Method Detail

      • when

        public Case.OngoingWhenThen when​(Expression nextExpression)
        Creates a new case/when expression with an additional WHEN block.
        Parameters:
        nextExpression - The next expression to use.
        Returns:
        An ongoing when builder.
      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - the visitor to notify, must not be null.