Annotation Interface HumanReadableBytesRange


@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) @Documented @Constraint(validatedBy=HumanReadableBytesRangeValidator.class) public @interface HumanReadableBytesRange
This annotation is an extension of java validation framework to ensure the validity of value of HumanReadableBytes. To use it, put it on a field of type of HumanReadableBytes. For example, class Size {
  • Element Details

    • min

      long min
      lower bound of HumanReadableBytes. Inclusive
      Default:
      0L
    • max

      long max
      upper bound of HumanReadableBytes. Inclusive
      Default:
      9223372036854775807L
    • groups

      Class<?>[] groups
      Default:
      {}
    • message

      String message
      Default:
      "value must be in the range of [{min}, {max}]"
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Default:
      {}