Annotation Interface Where


@Target(METHOD) @Retention(RUNTIME) public @interface Where
This annotation can be used to define conditions for a rule method. It supports both literal conditions and method references.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines conditions expressed as method references.
    This annotation value defines an array of literal conditions such as `["$c.type == $cat.id", "$c.rating > 30.0"]`.
  • Element Details

    • value

      String[] value
      This annotation value defines an array of literal conditions such as `["$c.type == $cat.id", "$c.rating > 30.0"]`.
      Returns:
      an array of literal conditions
      Default:
      {}
    • methods

      MethodPredicate[] methods
      Defines conditions expressed as method references.
      Returns:
      array of MethodPredicate conditions
      Default:
      {}