Class Priority

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated() 
    public final class Priority
     implements Serializable
                        

    Class representing and holding constants for priority.

    Author:

    Peter Donald

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Priority getPriorityForName(String priority) Retrieve a Priority object for the name parameter.
      String toString() Overridden string to display Priority in human readable form.
      int getValue() Get numerical value associated with priority.
      String getName() Get name of priority.
      boolean isGreater(Priority other) Test whether this priority is greater than other priority.
      boolean isLower(Priority other) Test whether this priority is lower than other priority.
      boolean isLowerOrEqual(Priority other) Test whether this priority is lower or equal to other priority.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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

      • getName

         String getName()

        Get name of priority.

        Returns:

        the priorities name

      • 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