Package org.apache.log
Class Priority
-
- All Implemented Interfaces:
-
java.io.Serializable
@Deprecated() public final class Priority implements Serializable
Class representing and holding constants for priority.
Peter Donald
-
-
Method Summary
Modifier and Type Method Description static PrioritygetPriorityForName(String priority)Retrieve a Priority object for the name parameter. StringtoString()Overridden string to display Priority in human readable form. intgetValue()Get numerical value associated with priority. StringgetName()Get name of priority. booleanisGreater(Priority other)Test whether this priority is greater than other priority. booleanisLower(Priority other)Test whether this priority is lower than other priority. booleanisLowerOrEqual(Priority other)Test whether this priority is lower or equal to other priority. -
-
Method Detail
-
getPriorityForName
static Priority getPriorityForName(String priority)
Retrieve a Priority object for the name parameter.
- Parameters:
priority- the priority name- Returns:
the Priority for name
-
toString
String toString()
Overridden string to display Priority in human readable form.
- Returns:
the string describing priority
-
getValue
int getValue()
Get numerical value associated with priority.
- Returns:
the numerical value
-
isGreater
boolean isGreater(Priority other)
Test whether this priority is greater than other priority.
- Parameters:
other- the other Priority- Returns:
TRUE if the priority is greater else FALSE
-
isLower
boolean isLower(Priority other)
Test whether this priority is lower than other priority.
- Parameters:
other- the other Priority- Returns:
TRUE if the priority is lower else FALSE
-
isLowerOrEqual
boolean isLowerOrEqual(Priority other)
Test whether this priority is lower or equal to other priority.
- Parameters:
other- the other Priority- Returns:
TRUE if the priority is lower or equal else FALSE
-
-
-
-