Activatable.State

abstract class State

A utility base class which can be used to implement a state pattern which fulfills the Activatable interface. Classes implementing Activatable can create own state classes derived from this one to inherit the default behavior for activate() and deactivate(). The base implementations of activate() and deactivate() always throw an IllegalStateException.

Author

jwienke

Methods

activate

public void activate()

deactivate

public void deactivate()

isActive

public abstract boolean isActive()