Package net.dreamlu.mica.holidays.core
Enum Class DaysType
- All Implemented Interfaces:
Serializable,Comparable<DaysType>,Constable
日期类型,工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2;
- Author:
- L.cm
-
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
-
Enum Constant Details
-
WEEKDAYS
工作日 -
REST_DAYS
休息日 -
HOLIDAYS
节假日
-
-
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
-
from
将 type 转换成枚举- Parameters:
type- type- Returns:
- DaysType
-