Serializable
, Comparable<Alert.Severity>
public static enum Alert.Severity extends Enum<Alert.Severity>
Enum Constant | Description |
---|---|
advisory |
an individual should be aware of potentially severe weather
|
warning |
and individual should take immediate action to protect themselves and others from potentially severe weather
|
watch |
an individual should prepare for potentially severe weather
|
Modifier and Type | Method | Description |
---|---|---|
static Alert.Severity |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Alert.Severity[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alert.Severity advisory
public static final Alert.Severity watch
public static final Alert.Severity warning
public static Alert.Severity[] values()
for (Alert.Severity c : Alert.Severity.values()) System.out.println(c);
public static Alert.Severity 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 nullCopyright © 2018. All rights reserved.