Package cz.muni.fi.xkozubi1
Class Utils
- java.lang.Object
-
- cz.muni.fi.xkozubi1.Utils
-
public class Utils extends Object
- Author:
- Dominik Kozubik
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
doReset()
Sets QueueSorter to DefaultSorter if it was ShutdownQueueSorter before.static void
handleSorterOn(boolean isSorterOn)
Based on input condition, sets QueueSorter either to ShutdownQueueSorter or the original sorter.static boolean
isCanAddToQueue()
static void
setCanAddToQueue(boolean canAddToQueue)
-
-
-
Method Detail
-
setCanAddToQueue
public static void setCanAddToQueue(boolean canAddToQueue)
-
isCanAddToQueue
public static boolean isCanAddToQueue()
-
handleSorterOn
public static void handleSorterOn(boolean isSorterOn)
Based on input condition, sets QueueSorter either to ShutdownQueueSorter or the original sorter.- Parameters:
isSorterOn
- boolean value from the settings option "Sorter on"
-
doReset
public static void doReset()
Sets QueueSorter to DefaultSorter if it was ShutdownQueueSorter before.
-
-