Enum Class Fields.Chrono

java.lang.Object
java.lang.Enum<Fields.Chrono>
org.aoju.bus.core.lang.Fields.Chrono
All Implemented Interfaces:
Serializable, Comparable<Fields.Chrono>, Constable
Enclosing class:
Fields

public static enum Fields.Chrono extends Enum<Fields.Chrono>
十二时辰枚举,包含英文全称,中文全称,时间范围
  • Enum Constant Details

  • Method Details

    • values

      public static Fields.Chrono[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Fields.Chrono valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getChrono

      public static Fields.Chrono getChrono(LocalTime localTime)
      根据时间查询时辰名称枚举
      Parameters:
      localTime - LocalTime
      Returns:
      this
    • getName

      public static String getName(LocalTime localTime)
      根据时间查询时辰名称
      Parameters:
      localTime - LocalTime
      Returns:
      String
    • getName

      public static String getName(Date date)
      根据时间查询时辰名称
      Parameters:
      date - Date
      Returns:
      String
    • getKey

      public int getKey()
    • getName

      public String getName()
    • getStartTime

      public String getStartTime()
    • getEndTime

      public String getEndTime()