Annotation Interface DataSizeUnit


@Target({FIELD,PARAMETER}) @Retention(RUNTIME) @Documented public @interface DataSizeUnit
Annotation that can be used to change the default unit used when converting a DataSize.
Since:
2.1.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    org.springframework.util.unit.DataUnit
    The DataUnit to use if one is not specified.
  • Element Details

    • value

      org.springframework.util.unit.DataUnit value
      The DataUnit to use if one is not specified.
      Returns:
      the data unit