Class Level
- java.lang.Object
-
- io.siddhi.core.util.statistics.metrics.Level
-
- All Implemented Interfaces:
Comparable<Level>
public class Level extends Object implements Comparable<Level>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Level other)booleanequals(Object other)inthashCode()Stringname()Gets the symbolic name of this Level.StringtoString()static LevelvalueOf(String name)Return the Level associated with the name.
-
-
-
Method Detail
-
valueOf
public static Level valueOf(String name)
Return the Level associated with the name.- Parameters:
name- The name of the Level to return.- Returns:
- The Level.
- Throws:
NullPointerException- if the Level name isnull.IllegalArgumentException- if the Level name is not registered.
-
compareTo
public int compareTo(Level other)
- Specified by:
compareToin interfaceComparable<Level>
-
name
public String name()
Gets the symbolic name of this Level. Equivalent to callingtoString().- Returns:
- the name of this Level.
-
-