Enum Severity
- java.lang.Object
-
- java.lang.Enum<Severity>
-
- org.openjdk.jmc.flightrecorder.rules.Severity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INFO
Results with this severity score should be presented as potential problems.NA
Results with this severity score are not applicable to the recording, but it should be possible to view them so the user can see which results have not been possible to evaluate.OK
Results with this severity score should be presented as OK.WARNING
Results with this severity score should be presented as warnings.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
localizedName
private double
score
private static Severity[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
Severity(double score, java.lang.String localizedName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Severity
get(double score)
double
getLimit()
java.lang.String
getLocalizedName()
static Severity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NA
public static final Severity NA
Results with this severity score are not applicable to the recording, but it should be possible to view them so the user can see which results have not been possible to evaluate.
-
OK
public static final Severity OK
Results with this severity score should be presented as OK.
-
INFO
public static final Severity INFO
Results with this severity score should be presented as potential problems.
-
WARNING
public static final Severity WARNING
Results with this severity score should be presented as warnings.
-
-
Field Detail
-
score
private final double score
-
localizedName
private final java.lang.String localizedName
-
VALUES
private static final Severity[] VALUES
-
-
Method Detail
-
values
public static Severity[] 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 (Severity c : Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Severity valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getLocalizedName
public java.lang.String getLocalizedName()
-
getLimit
public double getLimit()
-
get
public static Severity get(double score)
-
-