public static final RulePriority HIGH
High: Change absolutely required. Behavior is critically broken/buggy
public static final RulePriority MEDIUM_HIGH
Medium to high: Change highly recommended. Behavior is quite likely to be broken/buggy.
public static final RulePriority MEDIUM
Medium: Change recommended. Behavior is confusing, perhaps buggy, and/or against standards/best practices.
public static final RulePriority MEDIUM_LOW
Medium to low: Change optional. Behavior is not likely to be buggy, but more just flies in the face of standards/style/good taste.
public static final RulePriority LOW
Low: Change highly optional. Nice to have, such as a consistent naming policy for package/class/fields...
public static RulePriority[] 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 (RulePriority c : RulePriority.values()) System.out.println(c);
public static RulePriority 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.)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
public int getPriority()
Get the priority value as a number. This is the value to be used in the externalized form of a priority (e.g. in RuleSet XML).
int
value of the priority.
public String getName()
Get the descriptive name of this priority.
public String toString()
Returns the descriptive name of the priority.
toString
in class Enum<RulePriority>
getName()
public static RulePriority valueOf(int priority)
Get the priority which corresponds to the given number as returned by
getPriority()
. If the number is an invalid value, then
LOW
will be returned.
priority
- The numeric priority value.
public static RulePriority valueOfNullable(int priority)
Returns the priority which corresponds to the given number as returned by
getPriority()
. If the number is an invalid value, then null will be returned.
priority
- The numeric priority value.
public static RulePriority valueOfNullable(String priority)
Returns the priority which corresponds to the given number as returned by
getPriority()
. If the number is an invalid value, then null will be returned.
priority
- The numeric priority value.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4