Class Priority

  • Direct Known Subclasses:

    public class Priority
    extends Object
    Refrain from using this class directly, use the Level class instead.
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Two priorities are equal if their level fields are equal.
        equals in class Object
      • getSyslogEquivalent

        public final int getSyslogEquivalent()
        Return the syslog equivalent of this priority as an integer.
      • isGreaterOrEqual

        public boolean isGreaterOrEqual​(Priority r)
        Returns true if this level has a higher or equal level than the level passed as argument, false otherwise.

        You should think twice before overriding the default implementation of isGreaterOrEqual method.

      • getAllPossiblePriorities

        public static Priority[] getAllPossiblePriorities()
        This method will be removed with no replacement.
        Return all possible priorities as an array of Level objects in descending order.
      • toString

        public final String toString()
        Returns the string representation of this priority.
        toString in class Object
      • toInt

        public final int toInt()
        Returns the integer representation of this level.