Package org.jsonex.jsoncoder
Enum JSONCoderOption.LogLevel
- java.lang.Object
-
- java.lang.Enum<JSONCoderOption.LogLevel>
-
- org.jsonex.jsoncoder.JSONCoderOption.LogLevel
-
- All Implemented Interfaces:
Serializable,Comparable<JSONCoderOption.LogLevel>
- Enclosing class:
- JSONCoderOption
public static enum JSONCoderOption.LogLevel extends Enum<JSONCoderOption.LogLevel>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidlog(org.slf4j.Logger logger, String message, Throwable e)static JSONCoderOption.LogLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static JSONCoderOption.LogLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final JSONCoderOption.LogLevel OFF
-
DEBUG
public static final JSONCoderOption.LogLevel DEBUG
-
INFO
public static final JSONCoderOption.LogLevel INFO
-
WARN
public static final JSONCoderOption.LogLevel WARN
-
ERROR
public static final JSONCoderOption.LogLevel ERROR
-
-
Method Detail
-
values
public static JSONCoderOption.LogLevel[] 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 (JSONCoderOption.LogLevel c : JSONCoderOption.LogLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JSONCoderOption.LogLevel 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
-
-