com.samsung.android.sdk.healthdata

Class HealthPermissionManager.PermissionKey

  • java.lang.Object
    • com.samsung.android.sdk.healthdata.HealthPermissionManager.PermissionKey
  • Enclosing class:
    HealthPermissionManager


    public static class HealthPermissionManager.PermissionKey
    extends Object
    This class represents the permission key which consists of a health data type and a permission type. It is used as a key to request permission and checks the permission state.
    Since:
    1.0.0
    • Constructor Detail

      • PermissionKey

        public PermissionKey(String dataType,
                             HealthPermissionManager.PermissionType permissionType)
        Creates a PermissionKey instance.
        Parameters:
        dataType - The health data type
        permissionType - The permission type
        Since:
        1.0.0
    • Method Detail

      • getDataType

        public String getDataType()
        Gets the health data type of the permission key.
        Returns:
        the health data type
        Since:
        1.0.0
      • equals

        public boolean equals(Object obj)
        Checks if this instance is equal with the given object. In other to be equal, obj must an instance of PermissionKey.
        Overrides:
        equals in class Object
        Parameters:
        obj - The PermissionKey object to compare this instance with
        Returns:
        true if the given object is equal to this instance, or false
        See Also:
        hashCode()
      • hashCode

        public int hashCode()
        Returns a hash code value for this instance.
        If equals(Object) returns true for two objects, their hash code values are same.
        Overrides:
        hashCode in class Object
        Returns:
        The hash code value for this instance
        See Also:
        equals(Object)