Class AbstractCancellable

  • All Implemented Interfaces:
    Cancellable

    public abstract class AbstractCancellable
    extends java.lang.Object
    implements Cancellable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isCancelled()
      Gets if the event is cancelled.
      void setCancelled​(boolean cancelled)
      Cancels the event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCancellable

        protected AbstractCancellable​(boolean cancelled)
      • AbstractCancellable

        protected AbstractCancellable()
    • Method Detail

      • isCancelled

        public final boolean isCancelled()
        Description copied from interface: Cancellable
        Gets if the event is cancelled.
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        if the event is cancelled
      • setCancelled

        public final void setCancelled​(boolean cancelled)
        Description copied from interface: Cancellable
        Cancels the event.
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancelled - if the event is cancelled