- java.lang.Object
-
- com.seiama.event.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 Summary
Fields Modifier and Type Field Description protected booleancancelled
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCancellable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancelled()Gets the cancelled state.voidcancelled(boolean cancelled)Sets the cancelled state.
-
-
-
Method Detail
-
cancelled
public boolean cancelled()
Description copied from interface:CancellableGets the cancelled state.- Specified by:
cancelledin interfaceCancellable- Returns:
- the cancelled state
-
cancelled
public void cancelled(boolean cancelled)
Description copied from interface:CancellableSets the cancelled state.- Specified by:
cancelledin interfaceCancellable- Parameters:
cancelled- the cancelled state
-
-