Enum 천간
- java.lang.Object
-
- java.lang.Enum<천간>
-
- com.github.jinahya.sexagenarycycle.천간
-
- All Implemented Interfaces:
Serializable
,Comparable<천간>
public enum 천간 extends Enum<천간>
Constants of Heavenly Stems.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 천간
of(天干 天干)
Returns the constant for specified 天干.static 천간
ofName(String name)
Returns the constant of specified name.static 천간
valueOf(String name)
Returns the enum constant of this type with the specified name.static 천간[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
天干
public final 天干 天干
-
-
Method Detail
-
values
public static 천간[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (천간 c : 천간.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static 천간 valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
ofName
public static 천간 ofName(String name)
Returns the constant of specified name. This method, unlikely tovalueOf(String)
method, uses a cache.- Parameters:
name
- the name.- Returns:
- the constant associated with
name
.
-
-