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.
        prioritizableObjects - a list of Prioritizable objects
        a list with the objects sorted by their priority
      • getPriority

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