Interface Prioritized


public interface Prioritized
Interface for objects that can be prioritized and sorted by their order value.

Classes implementing this interface can be sorted based on their order value. Objects with smaller order values will be placed before objects with larger order values (ascending order). This is commonly used for hooks and other components that need to execute in a specific sequence.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the order value for this object.
  • Method Details

    • getOrder

      int getOrder()
      Returns the order value for this object.

      The order value determines the priority of this object when sorted with other Prioritized objects. Objects with smaller order values will be sorted before objects with larger order values (ascending order).

      For example:

      • An object with order 1 will be placed before an object with order 5
      • An object with order 10 will be placed before an object with order 20

      Returns:
      the order value (smaller values indicate higher priority)