Enum LogLevel
- java.lang.Object
-
- java.lang.Enum<LogLevel>
-
- net.splitcells.dem.resource.communication.interaction.LogLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<LogLevel>
,Ordered<LogLevel>
,OrderingCheck<LogLevel>
public enum LogLevel extends Enum<LogLevel> implements Ordered<LogLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRITICAL
Environment might be damaged.DEBUG
Show all changes of state.ERROR
Running application is damaged.INFO
Information that is important for interactive usage.TRACE
Show everything that is executed.UNKNOWN_ERROR
Error which cannot be classified.WARNING
Not everything is working or something was done but could not be completed (i.e.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Ordering
compare_to(LogLevel arg)
TODO Test ifOrdered.compare_to(T)
is implemented for subclass of T.static LogLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.splitcells.dem.data.order.Ordered
compareTo, equalz, greaterThan, greaterThanOrEqual, smallerThan, smallerThanOrEqual
-
-
-
-
Enum Constant Detail
-
UNKNOWN_ERROR
public static final LogLevel UNKNOWN_ERROR
Error which cannot be classified. This is highest severity.
-
CRITICAL
public static final LogLevel CRITICAL
Environment might be damaged.
-
ERROR
public static final LogLevel ERROR
Running application is damaged.
-
WARNING
public static final LogLevel WARNING
Not everything is working or something was done but could not be completed (i.e. additional user interaction is required).
-
INFO
public static final LogLevel INFO
Information that is important for interactive usage.
-
DEBUG
public static final LogLevel DEBUG
Show all changes of state.
-
TRACE
public static final LogLevel TRACE
Show everything that is executed.
-
-
Method Detail
-
values
public static 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 (LogLevel c : 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 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
-
compare_to
public Ordering compare_to(LogLevel arg)
Description copied from interface:Ordered
TODO Test ifOrdered.compare_to(T)
is implemented for subclass of T. The relation of {@param arg} to {@link this}: this isto arg. Default order is ascending. - Specified by:
compare_to
in interfaceOrdered<LogLevel>
-
-