org.springframework.core

Interface Ordered

    • Field Detail

      • HIGHEST_PRECEDENCE

        static final int HIGHEST_PRECEDENCE
        Useful constant for the highest precedence value.
        See Also:
        Integer.MIN_VALUE, Constant Field Values
      • LOWEST_PRECEDENCE

        static final int LOWEST_PRECEDENCE
        Useful constant for the lowest precedence value.
        See Also:
        Integer.MAX_VALUE, Constant Field Values
    • Method Detail

      • getOrder

        int getOrder()
        Get the order value of this object.

        Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startup values).

        Same order values will result in arbitrary sort positions for the affected objects.

        Returns:
        the order value
        See Also:
        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE