Class AbstractCancellable

  • All Implemented Interfaces:
    Cancellable

    public abstract class AbstractCancellable
    extends Object
    implements Cancellable
    An abstract implementation of something that can be cancelled.
    Since:
    1.0.0
    • Field Detail

      • cancelled

        protected boolean cancelled
    • Constructor Detail

      • AbstractCancellable

        protected AbstractCancellable()
    • Method Detail

      • cancelled

        public boolean cancelled()
        Description copied from interface: Cancellable
        Gets the cancelled state.
        Specified by:
        cancelled in interface Cancellable
        Returns:
        the cancelled state
      • cancelled

        public void cancelled​(boolean cancelled)
        Description copied from interface: Cancellable
        Sets the cancelled state.
        Specified by:
        cancelled in interface Cancellable
        Parameters:
        cancelled - the cancelled state