Class Expressions.CaseOfMatchers.PartialMatcher<X>

java.lang.Object
org.derive4j.processor.api.model.Expressions.CaseOfMatchers.PartialMatcher<X>
Direct Known Subclasses:
Expressions.CaseOfMatchers.TotalMatcher_RecursiveExpression
Enclosing class:
Expressions.CaseOfMatchers

public static class Expressions.CaseOfMatchers.PartialMatcher<X> extends Object
  • Field Details

    • _expression

      private final Expression _expression
    • baseExpression

      private final Function<com.squareup.javapoet.CodeBlock,X> baseExpression
    • recursiveExpression

      private final Function<UnaryOperator<com.squareup.javapoet.CodeBlock>,X> recursiveExpression
  • Constructor Details

  • Method Details

    • otherwise

      public final X otherwise(Supplier<X> otherwise)
    • otherwise_

      public final X otherwise_(X x)
    • otherwiseEmpty

      public final Optional<X> otherwiseEmpty()