public enum ReportType extends Enum<ReportType>
Enum Constant and Description |
---|
INFO |
NONE
Deprecated.
Prefer use
INFO because this one is never used somewhere. |
REPORT |
VIOLATION |
WARNING |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
int |
getPower() |
boolean |
isStronger(ReportType o) |
static ReportType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReportType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReportType VIOLATION
public static final ReportType WARNING
public static final ReportType INFO
public static final ReportType REPORT
@Deprecated public static final ReportType NONE
INFO
because this one is never used somewhere.public static ReportType[] values()
for (ReportType c : ReportType.values()) System.out.println(c);
public static ReportType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public int getPower()
public boolean isStronger(ReportType o)