Package org.openhab.core.events
Class AbstractEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
AbstractInboxEvent
,AbstractItemChannelLinkRegistryEvent
,AbstractItemRegistryEvent
,AbstractRuleRegistryEvent
,AbstractThingRegistryEvent
,AddonEvent
,ChannelDescriptionChangedEvent
,ChannelTriggeredEvent
,ConfigStatusInfoEvent
,ExecutionEvent
,FirmwareStatusInfoEvent
,FirmwareUpdateProgressInfoEvent
,FirmwareUpdateResultInfoEvent
,ItemEvent
,RuleStatusInfoEvent
,StartlevelEvent
,ThingStatusInfoChangedEvent
,ThingStatusInfoEvent
,TimerEvent
Abstract implementation of the
Event
interface.- Author:
- Stefan Bußweiler - Initial contribution
-
Constructor Summary
ConstructorDescriptionAbstractEvent
(String topic, String payload, @Nullable String source) Must be called in subclass constructor to create a new event. -
Method Summary
-
Constructor Details
-
AbstractEvent
Must be called in subclass constructor to create a new event.- Parameters:
topic
- the topicpayload
- the payloadsource
- the source
-
-
Method Details
-
getTopic
Description copied from interface:Event
Gets the topic of an event. -
getPayload
Description copied from interface:Event
Gets the payload as a serialized string.- Specified by:
getPayload
in interfaceEvent
- Returns:
- the serialized event
-
getSource
Description copied from interface:Event
Gets the name of the source identifying the sender. -
hashCode
public int hashCode() -
equals
-