Package cdc.issues.api
Enum IssueLevel
- java.lang.Object
-
- java.lang.Enum<IssueLevel>
-
- cdc.issues.api.IssueLevel
-
- All Implemented Interfaces:
Serializable,Comparable<IssueLevel>
public enum IssueLevel extends Enum<IssueLevel>
Enumeration of possible issue levels- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAtLeast(IssueLevel level)static IssueLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static IssueLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFO
public static final IssueLevel INFO
-
WARNING
public static final IssueLevel WARNING
-
ERROR
public static final IssueLevel ERROR
-
FATAL
public static final IssueLevel FATAL
-
-
Method Detail
-
values
public static IssueLevel[] 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 (IssueLevel c : IssueLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssueLevel valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isAtLeast
public boolean isAtLeast(IssueLevel level)
-
-