- All Implemented Interfaces:
Handler<Void>
This class can be used for simple handlers which don't receive any value.
- Author:
- Bruno Salmon
-
Constructor Summary
Constructors
-
Method Summary
protected abstract void
final void
Something has happened, so handle it.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
VoidHandler
public VoidHandler()
-
Method Details
-
handle
public final void handle(Void event)
Description copied from interface: Handler
Something has happened, so handle it.
- Specified by:
handle
in interface Handler<Void>
- Parameters:
event
- the event to handle
-
handle
protected abstract void handle()
Handle the event. It should be overridden by the user.