Package org.linphone.core
Interface Dictionary
public interface Dictionary
Object that represents key-value pair container.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the dictionary.clone()
Instantiates a new dictionary with values from source.float
Gets the float value of a key.int
Gets the int value of a key.int
Gets the int64 value of a key.long
Gets the native pointer used by this class to make native method calls.Gets the char* value of a key.Gets the object stored in this object user's dataint
Search if the key is present in the dictionary.int
Removes the pair of the key.void
Sets a float value to a key.void
Sets a int value to a key.void
Sets a int64 value to a key.void
Sets a char* value to a key.void
setUserData
(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
clear
void clear()Clears the dictionary.
-
clone
Instantiates a new dictionary with values from source.
- Returns:
- The newly created
Dictionary
object.
-
getFloat
Gets the float value of a key.
- Parameters:
key
- The key.- Returns:
- The username.
-
getInt
Gets the int value of a key.
- Parameters:
key
- The key.- Returns:
- The username.
-
getInt64
Gets the int64 value of a key.
- Parameters:
key
- The key.- Returns:
- The username.
-
getString
Gets the char* value of a key.
- Parameters:
key
- The key.- Returns:
- The username.
-
hasKey
Search if the key is present in the dictionary.
- Parameters:
key
- The key.- Returns:
- The LinphoneStatus of the operation.
-
remove
Removes the pair of the key.
- Parameters:
key
- The key.- Returns:
- The LinphoneStatus of the operation.
-
setFloat
Sets a float value to a key.
- Parameters:
key
- The key.value
- The int value.
-
setInt
Sets a int value to a key.
- Parameters:
key
- The key.value
- The int value.
-
setInt64
Sets a int64 value to a key.
- Parameters:
key
- The key.value
- The int64 value.
-
setString
Sets a char* value to a key.
- Parameters:
key
- The key.value
- The char* value.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data
- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-