Class ConfigResource

  • public final class ConfigResource
    extends Object
    A class representing resources that have configs.
    • Constructor Detail

      • ConfigResource

        public ConfigResource​(ConfigResource.Type type,
                              String name)
        Create an instance of this class with the provided parameters.
        type - a non-null resource type
        name - a non-null resource name
    • Method Detail

      • name

        public String name()
        Return the resource name.
      • isDefault

        public boolean isDefault()
        Returns true if this is the default resource of a resource type. Resource name is empty for the default resource.
      • hashCode

        public int hashCode()
        hashCode in class Object