Package io.inugami.api.alertings
Enum AlerteLevels
- java.lang.Object
-
- java.lang.Enum<AlerteLevels>
-
- io.inugami.api.alertings.AlerteLevels
-
- All Implemented Interfaces:
Serializable,Comparable<AlerteLevels>
public enum AlerteLevels extends Enum<AlerteLevels>
AlerteLevels- Since:
- 21 déc. 2017
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlerteLevelsgetAlerteLevel(String level)static AlerteLevelsgetLevel(Double levelValue)static AlerteLevelsvalueOf(String name)Returns the enum constant of this type with the specified name.static AlerteLevels[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FATAL
public static final AlerteLevels FATAL
-
ERROR
public static final AlerteLevels ERROR
-
WARN
public static final AlerteLevels WARN
-
INFO
public static final AlerteLevels INFO
-
DEBUG
public static final AlerteLevels DEBUG
-
TRACE
public static final AlerteLevels TRACE
-
OFF
public static final AlerteLevels OFF
-
UNDEFINE
public static final AlerteLevels UNDEFINE
-
-
Method Detail
-
values
public static AlerteLevels[] 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 (AlerteLevels c : AlerteLevels.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlerteLevels 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
-
getAlerteLevel
public static AlerteLevels getAlerteLevel(String level)
-
getLevel
public static AlerteLevels getLevel(Double levelValue)
-
-