批注接口 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.
从以下版本开始:
2.3.0
作者:
Eddú Meléndez, Edson Chávez
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    The Period unit to use if one is not specified.
  • 元素详细资料

    • value

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