org.apache.sling.event
Class EventPropertiesMap
java.lang.Object
java.util.Dictionary<java.lang.String,java.lang.Object>
org.apache.sling.event.EventPropertiesMap
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map<java.lang.String,java.lang.Object>
public class EventPropertiesMap
- extends java.util.Dictionary<java.lang.String,java.lang.Object>
- implements java.util.Map<java.lang.String,java.lang.Object>, java.io.Serializable
An implementation of a map that helps in dealing with properties
of an OSGi event.
This map implements both, the map and the dictionary interfaces.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
EventPropertiesMap()
Construct a new map. |
EventPropertiesMap(org.osgi.service.event.Event event)
Construct a new map out of an event object. |
EventPropertiesMap(java.util.Map<java.lang.String,java.lang.Object> props)
Construct a new map out of another map. |
Method Summary |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Enumeration<java.lang.Object> |
elements()
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(java.lang.Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Enumeration<java.lang.String> |
keys()
|
java.util.Set<java.lang.String> |
keySet()
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> t)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection<java.lang.Object> |
values()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EventPropertiesMap
public EventPropertiesMap(org.osgi.service.event.Event event)
- Construct a new map out of an event object.
The resulting map is modifiable. But any modification has
no influence on the original properties of the event!
- Parameters:
event
- The event object.
EventPropertiesMap
public EventPropertiesMap(java.util.Map<java.lang.String,java.lang.Object> props)
- Construct a new map out of another map.
- Parameters:
props
- The properties map object.
EventPropertiesMap
public EventPropertiesMap()
- Construct a new map.
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.clear()
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.containsValue(java.lang.Object)
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.entrySet()
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map<java.lang.String,java.lang.Object>
- Specified by:
get
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.get(java.lang.Object)
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
- Specified by:
isEmpty
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.isEmpty()
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.keySet()
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
- Specified by:
put
in interface java.util.Map<java.lang.String,java.lang.Object>
- Specified by:
put
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.put(java.lang.Object, java.lang.Object)
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> t)
- Specified by:
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.putAll(java.util.Map)
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
- Specified by:
remove
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.remove(java.lang.Object)
size
public int size()
- Specified by:
size
in interface java.util.Map<java.lang.String,java.lang.Object>
- Specified by:
size
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.size()
values
public java.util.Collection<java.lang.Object> values()
- Specified by:
values
in interface java.util.Map<java.lang.String,java.lang.Object>
- See Also:
Map.values()
elements
public java.util.Enumeration<java.lang.Object> elements()
- Specified by:
elements
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.elements()
keys
public java.util.Enumeration<java.lang.String> keys()
- Specified by:
keys
in class java.util.Dictionary<java.lang.String,java.lang.Object>
- See Also:
Dictionary.keys()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2007-2009. All Rights Reserved.