org.schmant.task.findbugs
Enum FindbugsEffortLevel
java.lang.Object
java.lang.Enum<FindbugsEffortLevel>
org.schmant.task.findbugs.FindbugsEffortLevel
- All Implemented Interfaces:
- Serializable, Comparable<FindbugsEffortLevel>
public enum FindbugsEffortLevel
- extends Enum<FindbugsEffortLevel>
Enumeration over the different Findbugs effort levels, i.e. how much effort
Findbugs should put into finding bugs.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- net.findbugs
MIN
public static final FindbugsEffortLevel MIN
NORMAL
public static final FindbugsEffortLevel NORMAL
MAX
public static final FindbugsEffortLevel MAX
values
public static FindbugsEffortLevel[] 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 (FindbugsEffortLevel c : FindbugsEffortLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FindbugsEffortLevel 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 name
NullPointerException
- if the argument is null
getFromString
public static FindbugsEffortLevel getFromString(String s)
throws IllegalArgumentException
- Get the effort level that corresponds to the supplied string.
- Parameters:
s
- The string.
- Returns:
- The effort level.
- Throws:
IllegalArgumentException
- If the string could not be identified as
an effort level.
toString
public String toString()
- Overrides:
toString
in class Enum<FindbugsEffortLevel>