Enum UnifiedLoggingLevel
- java.lang.Object
-
- java.lang.Enum<UnifiedLoggingLevel>
-
- com.microsoft.gctoolkit.parser.unified.UnifiedLoggingLevel
-
- All Implemented Interfaces:
Serializable,Comparable<UnifiedLoggingLevel>
public enum UnifiedLoggingLevel extends Enum<UnifiedLoggingLevel>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()booleanisGreaterThanOrEqualTo(UnifiedLoggingLevel other)booleanisLessThanOrEqualTo(UnifiedLoggingLevel other)static UnifiedLoggingLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static UnifiedLoggingLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
trace
public static final UnifiedLoggingLevel trace
-
debug
public static final UnifiedLoggingLevel debug
-
info
public static final UnifiedLoggingLevel info
-
warning
public static final UnifiedLoggingLevel warning
-
error
public static final UnifiedLoggingLevel error
-
-
Method Detail
-
values
public static UnifiedLoggingLevel[] 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 (UnifiedLoggingLevel c : UnifiedLoggingLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnifiedLoggingLevel 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
-
getLabel
public String getLabel()
-
isLessThanOrEqualTo
public boolean isLessThanOrEqualTo(UnifiedLoggingLevel other)
- Parameters:
other- logging level to compare this one to- Returns:
- whether this logging level is lesser or equal to the other one
-
isGreaterThanOrEqualTo
public boolean isGreaterThanOrEqualTo(UnifiedLoggingLevel other)
- Parameters:
other- logging level to compare this one to- Returns:
- whether this logging level is greater or equal to the other one
-
-