Enum Class Fields.Zodiac

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

public static enum Fields.Zodiac extends Enum<Fields.Zodiac>
星座名称枚举,包含英文全称,中文全称,时间范围
  • Enum Constant Details

  • Method Details

    • values

      public static Fields.Zodiac[] 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.Zodiac 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
    • getZodiacByMonthDay

      public static Fields.Zodiac getZodiacByMonthDay(String monthDayStr)
      根据日期查询星座名称枚举
      Parameters:
      monthDayStr - MM-dd格式
      Returns:
      this
    • getCnNameByMonthDay

      public static String getCnNameByMonthDay(String monthDayStr)
      根据日期查询星座中文名称
      Parameters:
      monthDayStr - MM-dd格式
      Returns:
      String
    • getEnNameByMonthDay

      public static String getEnNameByMonthDay(String monthDayStr)
      根据日期查询星座英文名称
      Parameters:
      monthDayStr - MM-dd格式
      Returns:
      String
    • getKey

      public int getKey()
    • getName

      public String getName()
    • getStartDate

      public String getStartDate()
    • getEndDate

      public String getEndDate()