com.dahuatech.hutool.core.date.Season Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.hutool.core.date;
/**
* 季度枚举
*
* @see #SPRING
* @see #SUMMER
* @see #AUTUMN
* @see #WINTER
* @author Looly
* @deprecated 请使用{@link Quarter}代替
*/
@Deprecated
public enum Season {
/** 春季(第一季度) */
SPRING(1),
/** 夏季(第二季度) */
SUMMER(2),
/** 秋季(第三季度) */
AUTUMN(3),
/** 冬季(第四季度) */
WINTER(4);
// ---------------------------------------------------------------
private int value;
Season(int value) {
this.value = value;
}
/**
* 将 季度int转换为Season枚举对象
*
* @see #SPRING
* @see #SUMMER
* @see #AUTUMN
* @see #WINTER
* @param intValue 季度int表示
* @return {@link Season}
* @deprecated 使用@{@link Quarter} 替代
*/
@Deprecated
public static Season of(int intValue) {
switch (intValue) {
case 1:
return SPRING;
case 2:
return SUMMER;
case 3:
return AUTUMN;
case 4:
return WINTER;
default:
return null;
}
}
public int getValue() {
return this.value;
}
}