Package org.aoju.bus.core.lang
Enum Class Fields.Zodiac
- All Implemented Interfaces:
Serializable,Comparable<Fields.Zodiac>,Constable
- Enclosing class:
Fields
星座名称枚举,包含英文全称,中文全称,时间范围
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCnNameByMonthDay(String monthDayStr) 根据日期查询星座中文名称static StringgetEnNameByMonthDay(String monthDayStr) 根据日期查询星座英文名称intgetKey()getName()static Fields.ZodiacgetZodiacByMonthDay(String monthDayStr) 根据日期查询星座名称枚举static Fields.ZodiacReturns the enum constant of this class with the specified name.static Fields.Zodiac[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Aries
-
Taurus
-
Gemini
-
Cancer
-
Leo
-
Virgo
-
Libra
-
Scorpio
-
Sagittarius
-
Capricorn
-
Aquarius
-
Pisces
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getZodiacByMonthDay
根据日期查询星座名称枚举- Parameters:
monthDayStr- MM-dd格式- Returns:
- this
-
getCnNameByMonthDay
-
getEnNameByMonthDay
-
getKey
public int getKey() -
getName
-
getStartDate
-
getEndDate
-