public class Level extends Object implements Comparable<Level>
Modifier and Type | Field and Description |
---|---|
static Level |
BASIC
A metric for informational purposes.
|
static Level |
DETAIL
A general debugging metric.
|
static Level |
OFF
No events will be used for metrics.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Level other) |
boolean |
equals(Object other) |
int |
hashCode() |
String |
name()
Gets the symbolic name of this Level.
|
String |
toString() |
static Level |
valueOf(String name)
Return the Level associated with the name.
|
public static final Level OFF
public static final Level BASIC
public static final Level DETAIL
public static Level valueOf(String name)
name
- The name of the Level to return.NullPointerException
- if the Level name is null
.IllegalArgumentException
- if the Level name is not registered.public int compareTo(Level other)
compareTo
in interface Comparable<Level>
public String name()
toString()
.Copyright © 2021. All rights reserved.