public interface PriorityTask extends Comparable<PriorityTask>
Comparablethat adheres to a priority by implementing
Comparable. Uses a combination of
indexto compare between
PriorityTaskinstances. A calculator (e.g.
CommandPriorityCalculator) defines the priority of the task. This task uses the
indexto differentiate between tasks with the same priority, ensuring the insert order is leading in those scenarios.
Copyright © 2010–2022. All rights reserved.