Annotation Interface Decide


@Experimental @Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface Decide
The question a decision model answers for a method of a decision service, or for a field of the object a method returns.
interface SupportDesk {

    @Decide("Is this message spam?")
    boolean isSpam(String message);
}
Since:
1.21.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The question to answer, for example "Is this message spam?".
  • Element Details

    • value

      String value
      The question to answer, for example "Is this message spam?".