public enum RulePriority extends Enum<RulePriority>
getPriority()
and
valueOf(int)
Enum Constant and Description |
---|
HIGH |
LOW |
MEDIUM |
MEDIUM_HIGH |
MEDIUM_LOW |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the descriptive name of this priority.
|
int |
getPriority()
Get the priority value as a number.
|
String |
toString()
Returns the descriptive name of the priority.
|
static RulePriority |
valueOf(int priority)
Get the priority which corresponds to the given number as returned
by
getPriority() . |
static RulePriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RulePriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RulePriority HIGH
public static final RulePriority MEDIUM_HIGH
public static final RulePriority MEDIUM
public static final RulePriority MEDIUM_LOW
public static final RulePriority LOW
public static RulePriority[] values()
for (RulePriority c : RulePriority.values()) System.out.println(c);
public static RulePriority 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 int getPriority()
int
value of the priority.public String getName()
public String toString()
toString
in class Enum<RulePriority>
public static RulePriority valueOf(int priority)
getPriority()
. If the number is an invalid
value, then LOW
will be returned.priority
- The numeric priority value.Copyright © 2002–2013 InfoEther. All rights reserved.