public class AttributeMapEvent extends BaseEvent
Note: this class has a natural ordering that is inconsistent with equals.
clonePolicy, DEFAULT_PRIORITY, id, name, time| Constructor and Description |
|---|
AttributeMapEvent(String name,
EventClonePolicy clonePolicy)
Creates a new event that has no ID and time set (both are 0).
|
| Modifier and Type | Method and Description |
|---|---|
AttributeMapEvent |
clone()
Clones this event.
|
protected <T> T |
doGet(String name,
boolean useDefault,
T defaultValue) |
Map<String,Object> |
getAll()
Returns attribute map.
|
boolean |
has(String name)
Checks whether this event has an attribute with the specified name.
|
Event |
set(String name,
Object value)
Sets attribute value.
|
equalsByAttributes, equalsById, get, get, getDefaultAttributeValue, getId, getName, getOrDefault, getPriority, getTime, setId, setTime, toString, toStringBase, valudateAttributepublic AttributeMapEvent(String name, EventClonePolicy clonePolicy)
name - an event name.clonePolicy - an event clone policy.protected <T> T doGet(String name, boolean useDefault, T defaultValue)
public Event set(String name, Object value)
name - attribute name.value - attribute value.public boolean has(String name)
name - attribute name.true if there is such attribute.public AttributeMapEvent clone()
Copyright © 2016–2018 Softelnet. All rights reserved.