Annotation Type PeriodUnit


@Target({FIELD,PARAMETER}) @Retention(RUNTIME) @Documented public @interface PeriodUnit
Annotation that can be used to change the default unit used when converting a Period.
Since:
2.3.0
Author:
Eddú Meléndez, Edson Chávez
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The Period unit to use if one is not specified.
  • Element Details

    • value

      ChronoUnit value
      The Period unit to use if one is not specified.
      Returns:
      the Period unit