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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.plotsquared.core.util.task.PlotSquaredTask
run
-
Constructor Details
-
NullTask
public NullTask()
-
-
Method Details
-
runTask
public void runTask()Description copied from interface:PlotSquaredTaskRun the task- Specified by:
runTaskin interfacePlotSquaredTask
-
isCancelled
public boolean isCancelled()Description copied from interface:PlotSquaredTaskCheck if the task has been cancelled- Specified by:
isCancelledin interfacePlotSquaredTask- Returns:
trueif the tasks is cancelled,falseif not
-
cancel
public void cancel()Description copied from interface:PlotSquaredTaskCancel the task- Specified by:
cancelin interfacePlotSquaredTask
-