Event. An event source can create an
EventProperties object if it needs to reuse the same event properties for
multiple events.
The keys are all of type String. The values are of type
Object. The key "event.topics" is ignored as event topics
can only be set when an Event is constructed.
Once constructed, an EventProperties object is unmodifiable. However, the values of the map used to construct an EventProperties object are still subject to modification as they are not deeply copied.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | properties
The properties for an event. |
| Access | Constructor and Description |
|---|---|
| public | EventProperties(Map<String, ?>
The properties to use for this EventProperties object
(may be properties)null).Create an EventProperties from the specified properties. |
| pack-priv | EventProperties(Dictionary<String, ?>
The properties to use for this EventProperties object
(may be properties)null).Create an EventProperties from the specified dictionary. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true If the property is present, false otherwise.The property name. name)Implements java. Indicates if the specified property is present. |
| public boolean | Returns: true If the value is present, false otherwise.The property value. value)Implements java. Indicates if the specified value is present. |
| public Set | Returns: A set containing the property name/value pairs.Implements java. Return the property entries. |
| public boolean | Returns: true if object is a EventProperties and
is equal to this object; false otherwise.The object)EventProperties object to be compared.Overrides java. Implements java. Compares this |
| public Object | Returns: The value of the specified property.The name of the specified property. name)Implements java. Return the value of the specified property. |
| public int | Returns: An integer which is a hash code value for this object.Overrides java. Implements java. Returns a hash code value for this object. |
| public boolean | Returns: true If this properties is empty, false
otherwise.Implements java. Indicate if this properties is empty. |
| public Set | Returns: The names of the properties.Implements java. Return the names of the properties. |
| public Object | put(String
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Implements java. This method throws |
| public void | putAll(Map<? extends String, ? extends Object>
mappings to be stored in this map map)Implements java. This method throws |
| public Object | remove(Object
key whose mapping is to be removed from the map key)Implements java. This method throws |
| public int | Returns: The number of properties.Implements java. Return the number of properties. |
| public String | Returns: The string representation of this object.Overrides java. Returns the string representation of this object. |
| public Collection | Returns: The values of the properties.Implements java. Return the properties values. |
| properties | back to summary |
|---|---|
| private final Map<String, Object> properties The properties for an event. Keys are strings and values are objects. The object is unmodifiable. | |
| EventProperties | back to summary |
|---|---|
| public EventProperties(Map<String, ?> properties) Create an EventProperties from the specified properties.
The specified properties will be copied into this EventProperties.
Properties whose key is not of type | |
| EventProperties | back to summary |
|---|---|
| pack-priv EventProperties(Dictionary<String, ?> properties) Create an EventProperties from the specified dictionary.
The specified properties will be copied into this EventProperties.
Properties whose key is not of type
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. This method throws
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object name) Implements java. Indicates if the specified property is present. | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements java. Indicates if the specified value is present. | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Return the property entries. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Implements java. Compares this
The properties are compared using the | |
| get | back to summary |
|---|---|
| public Object get(Object name) Implements java. Return the value of the specified property. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Returns a hash code value for this object.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Indicate if this properties is empty.
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Return the names of the properties. | |
| put | back to summary |
|---|---|
| public Object put(String key, Object value) Implements java. This method throws
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends String, ? extends Object> map) Implements java. This method throws
| |
| remove | back to summary |
|---|---|
| public Object remove(Object key) Implements java. This method throws
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Return the number of properties.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of this object. | |
| values | back to summary |
|---|---|
| public Collection Implements java. Return the properties values.
| |