Package org.aoju.bus.core.lang
Enum Class Fields.Type
- All Implemented Interfaces:
Serializable,Comparable<Fields.Type>,Constable
- Enclosing class:
Fields
日期各个部分的枚举 与Calendar相应值对应
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription上午或者下午一月中的第几天周几,1表示周日,2表示周一天所在的周是这个月的第几周一年中的第几天世纪小时,用于12小时制小时,用于24小时制毫秒分钟月秒一月中第几周一年中第几周年 -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static Fields.Typeof(int calendarPartIntValue) 将Calendar相关值转换为DatePart枚举对象static Fields.TypeReturns the enum constant of this class with the specified name.static Fields.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERA
-
YEAR
-
MONTH
-
WEEK_OF_YEAR
-
WEEK_OF_MONTH
-
DAY_OF_MONTH
-
DAY_OF_YEAR
-
DAY_OF_WEEK
-
DAY_OF_WEEK_IN_MONTH
-
AM_PM
-
HOUR
-
HOUR_OF_DAY
-
MINUTE
-
SECOND
-
MILLISECOND
-
-
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
-
of
将Calendar相关值转换为DatePart枚举对象- Parameters:
calendarPartIntValue- Calendar中关于Week的int值- Returns:
- this
-
getValue
public int getValue()
-