Enum GeolocationSeverity
- java.lang.Object
-
- java.lang.Enum<GeolocationSeverity>
-
- org.opennms.features.geolocation.api.GeolocationSeverity
-
- All Implemented Interfaces:
Serializable
,Comparable<GeolocationSeverity>
public enum GeolocationSeverity extends Enum<GeolocationSeverity>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
static GeolocationSeverity
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeolocationSeverity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Normal
public static final GeolocationSeverity Normal
-
Warning
public static final GeolocationSeverity Warning
-
Minor
public static final GeolocationSeverity Minor
-
Major
public static final GeolocationSeverity Major
-
Critical
public static final GeolocationSeverity Critical
-
-
Method Detail
-
values
public static GeolocationSeverity[] 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 (GeolocationSeverity c : GeolocationSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeolocationSeverity 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
-
getId
public int getId()
-
-