public static enum DiagnosticsSample.DiagnosticLevel extends java.lang.Enum<DiagnosticsSample.DiagnosticLevel>
Modifier and Type | Method and Description |
---|---|
static DiagnosticsSample.DiagnosticLevel |
errorIfNotNull(java.lang.Object obj)
Helper function that returns INFO if the input is null or empty string, error otherwise
|
static DiagnosticsSample.DiagnosticLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiagnosticsSample.DiagnosticLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiagnosticsSample.DiagnosticLevel INFO
public static final DiagnosticsSample.DiagnosticLevel WARN
public static final DiagnosticsSample.DiagnosticLevel ERROR
public static final DiagnosticsSample.DiagnosticLevel FATAL
public static DiagnosticsSample.DiagnosticLevel[] values()
for (DiagnosticsSample.DiagnosticLevel c : DiagnosticsSample.DiagnosticLevel.values()) System.out.println(c);
public static DiagnosticsSample.DiagnosticLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DiagnosticsSample.DiagnosticLevel errorIfNotNull(java.lang.Object obj)