public enum SmartHousePackageDurationUnit extends java.lang.Enum<SmartHousePackageDurationUnit>
Enum Constant and Description |
---|
DAY |
HOUR |
MINUTE |
MONTH |
UNKNOWN |
WEEK |
YEAR |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static SmartHousePackageDurationUnit |
getSmartHousePackageDurationUnit(int code) |
static SmartHousePackageDurationUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SmartHousePackageDurationUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmartHousePackageDurationUnit UNKNOWN
public static final SmartHousePackageDurationUnit MINUTE
public static final SmartHousePackageDurationUnit HOUR
public static final SmartHousePackageDurationUnit DAY
public static final SmartHousePackageDurationUnit WEEK
public static final SmartHousePackageDurationUnit MONTH
public static final SmartHousePackageDurationUnit YEAR
public static SmartHousePackageDurationUnit[] values()
for (SmartHousePackageDurationUnit c : SmartHousePackageDurationUnit.values()) System.out.println(c);
public static SmartHousePackageDurationUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
public static SmartHousePackageDurationUnit getSmartHousePackageDurationUnit(int code)