public enum TwelveTwoEnum extends Enum<TwelveTwoEnum>
Enum Constant and Description |
---|
CHENSHI |
CHOUSHI |
HAISHI |
MAOSHI |
SHENSHI |
SISHI |
WEISHI |
WUSHI |
XUSHI |
YINSHI |
YOUSHI |
ZISHI |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getEndTime() |
String |
getNameCn() |
static String |
getNameCn(Date date)
根据时间查询时辰名称
|
static String |
getNameCn(LocalTime localTime)
根据时间查询时辰名称
|
String |
getStartTime() |
static TwelveTwoEnum |
getTwelveHoursEnum(LocalTime localTime)
根据时间查询时辰名称枚举
|
static TwelveTwoEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TwelveTwoEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TwelveTwoEnum ZISHI
public static final TwelveTwoEnum CHOUSHI
public static final TwelveTwoEnum YINSHI
public static final TwelveTwoEnum MAOSHI
public static final TwelveTwoEnum CHENSHI
public static final TwelveTwoEnum SISHI
public static final TwelveTwoEnum WUSHI
public static final TwelveTwoEnum WEISHI
public static final TwelveTwoEnum SHENSHI
public static final TwelveTwoEnum YOUSHI
public static final TwelveTwoEnum XUSHI
public static final TwelveTwoEnum HAISHI
public static TwelveTwoEnum[] values()
for (TwelveTwoEnum c : TwelveTwoEnum.values()) System.out.println(c);
public static TwelveTwoEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TwelveTwoEnum getTwelveHoursEnum(LocalTime localTime)
localTime
- LocalTimepublic static String getNameCn(LocalTime localTime)
localTime
- LocalTimepublic static String getNameCn(Date date)
date
- Datepublic int getCode()
public String getNameCn()
public String getStartTime()
public String getEndTime()
Copyright © 2021. All rights reserved.