mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable HideUtilityClassConstructor in checkstyle (#5147)
This commit is contained in:
@@ -24,7 +24,9 @@ class Process {
|
||||
}
|
||||
}
|
||||
|
||||
public class PreemptivePriorityScheduling {
|
||||
public final class PreemptivePriorityScheduling {
|
||||
private PreemptivePriorityScheduling() {
|
||||
}
|
||||
public static List<String> preemptivePriorityScheduling(List<Process> processes) {
|
||||
List<String> ganttChart = new ArrayList<>();
|
||||
PriorityQueue<Process> readyQueue = new PriorityQueue<>(Comparator.comparingInt(p -> - p.priority));
|
||||
|
||||
Reference in New Issue
Block a user