Interface Prioritizable

    • Method Detail

      • sortByPriority

        static <P extends PrioritizableList<P> sortByPriority​(List<P> prioritizableObjects)
        Sorts a list of Prioritizable objects by priority. Note that those with a lower priority value are sorted first.
        Parameters:
        prioritizableObjects - a list of Prioritizable objects
        Returns:
        a list with the objects sorted by their priority
      • getPriority

        default int getPriority()
        Returns:
        an integer representing the priority of the object. It returns 100 by default.