Package com.plotsquared.core.util.task
Class PlotSquaredTask.NullTask
java.lang.Object
com.plotsquared.core.util.task.PlotSquaredTask.NullTask
- All Implemented Interfaces:
PlotSquaredTask
,Runnable
- Enclosing interface:
- PlotSquaredTask
Task that does nothing and is always cancelled
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.plotsquared.core.util.task.PlotSquaredTask
PlotSquaredTask.NullTask
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.plotsquared.core.util.task.PlotSquaredTask
run
-
Constructor Details
-
NullTask
public NullTask()
-
-
Method Details
-
runTask
Description copied from interface:PlotSquaredTask
Run the task- Specified by:
runTask
in interfacePlotSquaredTask
-
isCancelled
Description copied from interface:PlotSquaredTask
Check if the task has been cancelled- Specified by:
isCancelled
in interfacePlotSquaredTask
- Returns:
true
if the tasks is cancelled,false
if not
-
cancel
Description copied from interface:PlotSquaredTask
Cancel the task- Specified by:
cancel
in interfacePlotSquaredTask
-