| Method from org.apache.log4j.Priority Detail: |
public boolean equals(Object o) {
if(o instanceof Priority) {
Priority r = (Priority) o;
return (this.level == r.level);
} else {
return false;
}
}
Two priorities are equal if their level fields are equal. |
public static Priority[] getAllPossiblePriorities() {
return new Priority[] {Priority.FATAL, Priority.ERROR, Level.WARN,
Priority.INFO, Priority.DEBUG};
} Deprecated! This - method will be removed with no replacement.
Return all possible priorities as an array of Level objects in
descending order. |
public final int getSyslogEquivalent() {
return syslogEquivalent;
}
Return the syslog equivalent of this priority as an integer. |
public boolean isGreaterOrEqual(Priority r) {
return level >= r.level;
}
|
public final int toInt() {
return level;
}
Returns the integer representation of this level. |
public static Priority toPriority(String sArg) {
return Level.toLevel(sArg);
} Deprecated! Please - use the Level#toLevel(String) method instead.
|
public static Priority toPriority(int val) {
return toPriority(val, Priority.DEBUG);
} Deprecated! Please - use the Level#toLevel(int) method instead.
|
public static Priority toPriority(int val,
Priority defaultPriority) {
return Level.toLevel(val, (Level) defaultPriority);
} Deprecated! Please - use the Level#toLevel(int, Level) method instead.
|
public static Priority toPriority(String sArg,
Priority defaultPriority) {
return Level.toLevel(sArg, (Level) defaultPriority);
} Deprecated! Please - use the Level#toLevel(String, Level) method instead.
|
public final String toString() {
return levelStr;
}
Returns the string representation of this priority. |