public class DataObject
extends java.lang.Object
Constructor and Description |
---|
DataObject() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData(java.lang.Object key)
Gets the user data
associated with this instance and a specific key.
|
void |
setData(java.lang.Object key,
java.lang.Object value)
Sets a
user-specific association in this instance in the form of a key-value
pair.
|
public java.lang.Object getData(java.lang.Object key)
key
- the key of the user data associated with this instance to be
retrievedpublic void setData(java.lang.Object key, java.lang.Object value)
The user-defined association created by this method and stored in this instance is not serialized by this instance and is thus only meant for runtime use.
The storage of the user data is implementation-specific and is thus not guaranteed to be optimized for execution time and memory use.
key
- the key to associate in this instance with the specified valuevalue
- the value to be associated in this instance with the
specified key
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.