public enum RainType extends Enum<RainType>
| Enum Constant and Description |
|---|
HEAVY |
LIGHT |
MODERATE |
NONE |
UNKNOWN |
VIOLENT |
| Modifier and Type | Method and Description |
|---|---|
static RainType |
getById(Integer id) |
int |
getId() |
static RainType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RainType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RainType UNKNOWN
public static final RainType NONE
public static final RainType LIGHT
public static final RainType MODERATE
public static final RainType HEAVY
public static final RainType VIOLENT
public static RainType[] values()
for (RainType c : RainType.values()) System.out.println(c);
public static RainType 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 int getId()
Copyright © 2017. All rights reserved.