@Immutable public abstract class Event extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Event()
Protected constructor to allow subclassing this class.
|
| Modifier and Type | Method and Description |
|---|---|
static Event |
create(String name)
Returns a new
Event with the given name. |
static Event |
create(String name,
Map<String,AttributeValue> attributes)
Returns a new
Event with the given name and set of attributes. |
abstract Map<String,AttributeValue> |
getAttributes()
Return the attributes of the
Event. |
abstract String |
getName()
Return the name of the
Event. |
public abstract String getName()
Event.Event.public abstract Map<String,AttributeValue> getAttributes()
Event.Event.public static Event create(String name)
Event with the given name.name - the text name of the Event.Event with the given name.NullPointerException - if name is null.public static Event create(String name, Map<String,AttributeValue> attributes)
Event with the given name and set of attributes.name - the text name of the Event.attributes - the attributes of the Event.Event with the given name and set of attributes.NullPointerException - if name or attributes are null.