Interface PlotSquaredTask

All Superinterfaces:
Runnable
All Known Implementing Classes:
PlotSquaredTask.NullTask

public interface PlotSquaredTask extends Runnable
A task that can be run and cancelled (if repeating)
  • Method Details

    • nullTask

      static PlotSquaredTask.NullTask nullTask()
      Returns:
      Null task instance
    • run

      default void run()
      Run the task. Don't override this, instead implement runTask()
      Specified by:
      run in interface Runnable
    • runTask

      void runTask()
      Run the task
    • isCancelled

      boolean isCancelled()
      Check if the task has been cancelled
      Returns:
      true if the tasks is cancelled, false if not
    • cancel

      void cancel()
      Cancel the task