Class PreferenceScopeImpl

  • All Implemented Interfaces:
    PreferenceScope

    @Portable
    public class PreferenceScopeImpl
    extends Object
    implements PreferenceScope
    Default portable implementation for a preference scope, containing a type (required), a key (required) and a child scope (optional).
    • Method Detail

      • type

        public String type()
        Specified by:
        type in interface PreferenceScope
        Returns:
        Type of the preference scope. Represents a unique category of scopes.
      • key

        public String key()
        Specified by:
        key in interface PreferenceScope
        Returns:
        Key of the preference scope. Represents a unique key inside a scope type.
      • childScope

        public PreferenceScope childScope()
        Description copied from interface: PreferenceScope
        Child scope, a scope inside a scope. This allows a hierarchy inside each scope.
        Specified by:
        childScope in interface PreferenceScope
        Returns:
        Child scope. This can be null, indicating the end of the hierarchy.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object