Interface Dictionary


public interface Dictionary
Object that represents key-value pair container.

  • Method Details

    • clear

      void clear()
      Clears the dictionary.

    • clone

      @NonNull Dictionary clone()
      Instantiates a new dictionary with values from source.

      Returns:
      The newly created Dictionary object.
    • getFloat

      @Nullable float getFloat(@Nullable String key)
      Gets the float value of a key.

      Parameters:
      key - The key.
      Returns:
      The username.
    • getInt

      @Nullable int getInt(@Nullable String key)
      Gets the int value of a key.

      Parameters:
      key - The key.
      Returns:
      The username.
    • getInt64

      @Nullable int getInt64(@Nullable String key)
      Gets the int64 value of a key.

      Parameters:
      key - The key.
      Returns:
      The username.
    • getString

      @Nullable String getString(@Nullable String key)
      Gets the char* value of a key.

      Parameters:
      key - The key.
      Returns:
      The username.
    • hasKey

      int hasKey(@Nullable String key)
      Search if the key is present in the dictionary.

      Parameters:
      key - The key.
      Returns:
      The LinphoneStatus of the operation.
    • remove

      int remove(@Nullable String key)
      Removes the pair of the key.

      Parameters:
      key - The key.
      Returns:
      The LinphoneStatus of the operation.
    • setFloat

      void setFloat(@Nullable String key, float value)
      Sets a float value to a key.

      Parameters:
      key - The key.
      value - The int value.
    • setInt

      void setInt(@Nullable String key, int value)
      Sets a int value to a key.

      Parameters:
      key - The key.
      value - The int value.
    • setInt64

      void setInt64(@Nullable String key, int value)
      Sets a int64 value to a key.

      Parameters:
      key - The key.
      value - The int64 value.
    • setString

      void setString(@Nullable String key, String value)
      Sets a char* value to a key.

      Parameters:
      key - The key.
      value - The char* value.
    • setUserData

      void setUserData(Object data)
      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()
      Overrides:
      toString in class Object