Annotation Interface ValidTriadDepth


@Documented @Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER,TYPE_USE}) @Positive @Max(3L) @Constraint(validatedBy={}) @ReportAsSingleViolation public @interface ValidTriadDepth
Validates that a machine's depth is in a sane range. Note that only machines with a single board typically have a depth other than 3, and the current implementation never uses a depth of 2.
Author:
Donal Fellows
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Message on constraint violated.
  • Element Details

    • message

      String message
      Message on constraint violated.
      Returns:
      Message
      Default:
      "triad depth (${validatedValue}) must be at least 1 and no more than 3"