C - Type of content in the event.public class Event<C> extends Object
Note that two instances having the same contents will not be considered equal.
| Constructor and Description |
|---|
Event(Topic<? extends C> topic)
Constructor specifying only the topic.
|
Event(Topic<? extends C> topic,
C content)
Constructor specifying the topic and content of the event.
|
Event(Topic<? extends C> topic,
Channel channel,
C content)
Constructor specifying the topic, channel and content of the event.
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel()
Gets the channel on which the event is being dispatched.
|
C |
getContent()
Gets the content of the event.
|
Topic<? extends C> |
getTopic()
Gets the topic of the event.
|
String |
toString() |
public Event(Topic<? extends C> topic)
The content is null and sent on no particular channel.
topic - Topic for which the event is sent.public Event(Topic<? extends C> topic, C content)
The content is sent on no particular channel.
topic - Topic for which the event is sent.content - Content being sent.Copyright © 2017. All rights reserved.