Class Priority

    • Field Detail

      • MINIMUM_PRIORITY

        public static final int MINIMUM_PRIORITY
        The minimum allowable priority value. Please note that this refers to the case where no priority is set. This case happens to be represented by the value 0 which is the lowest integer value allowable.
        See Also:
        Constant Field Values
      • MAXIMUM_PRIORITY

        public static final int MAXIMUM_PRIORITY
        The maximum allowable priority value. Please note that this refers to the highest possible integer value for priority. When interpreting this value it is seen as the lowest priority because the value 1 is the highest priority value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Priority

        public Priority()
        This is the default constructor. It is used by Castor. You should probably use the constructor that takes an integer argument in your application code.
      • Priority

        public Priority​(int newval)
        The purpose of this method is to create a new priority property with the given initial value.
        Parameters:
        newval - The initial value of the priority property
    • Method Detail

      • getAllPriorities

        public static int[] getAllPriorities()
      • getValue

        public int getValue()
      • setValue

        public final void setValue​(int newVal)
        The purpose of this method is to set the value of the priority property.
        Parameters:
        newVal - The new value for the priority property
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object