Annotation Type DataSizeRange

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?>[] groups
      The groups the constraint belongs to.
      long max
      The maximum value of the range the validated DataSize must be in.
      String message
      The validation message for this constraint.
      long min
      The minimum value of the range the validated DataSize must be in.
      Class<? extends javax.validation.Payload>[] payload
      The payloads of this constraint.
      DataSizeUnit unit
      The unit of the validated range.
    • Element Detail

      • min

        @OverridesAttribute(constraint=MinDataSize.class,
                            name="value")
        long min
        The minimum value of the range the validated DataSize must be in.
        Returns:
        the minimum value
        Default:
        0L
      • max

        @OverridesAttribute(constraint=MaxDataSize.class,
                            name="value")
        long max
        The maximum value of the range the validated DataSize must be in.
        Returns:
        the maximum value
        Default:
        9223372036854775807L
      • message

        String message
        The validation message for this constraint.
        Returns:
        the message
        Default:
        "must be between {min} {unit} and {max} {unit}"
      • groups

        Class<?>[] groups
        The groups the constraint belongs to.
        Returns:
        an array of classes representing the groups
        Default:
        {}
      • payload

        Class<? extends javax.validation.Payload>[] payload
        The payloads of this constraint.
        Returns:
        the array of payload classes
        Default:
        {}