public class BaseOobEvent extends Object implements OobEvent
OobEvent
that can be subclassed into user-defined events.OobEvent.OobEventType
Constructor and Description |
---|
BaseOobEvent(OobEvent.OobEventType type,
Source<OobEvent,SourceType> source)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Source<OobEvent,SourceType> |
getSource()
Gets the
Source from which this event originated. |
OobEvent.OobEventType |
getType()
Gets the
Event type. |
String |
toString()
Creates a human-readable representation of this event.
|
public BaseOobEvent(OobEvent.OobEventType type, Source<OobEvent,SourceType> source)
public OobEvent.OobEventType getType()
Event
Event
type.getType
in interface EnumType<OobEvent.OobEventType>
getType
in interface Event<OobEvent,OobEvent.OobEventType,SourceType>
public Source<OobEvent,SourceType> getSource()
Event
Source
from which this event originated.getSource
in interface Event<OobEvent,OobEvent.OobEventType,SourceType>