Class ConfigResource


  • public final class ConfigResource
    extends java.lang.Object
    A class representing resources that have configs.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ConfigResource.Type
      Type of resource.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigResource​(ConfigResource.Type type, java.lang.String name)
      Create an instance of this class with the provided parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isDefault()
      Returns true if this is the default resource of a resource type.
      java.lang.String name()
      Return the resource name.
      java.lang.String toString()  
      ConfigResource.Type type()
      Return the resource type.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConfigResource

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

      • name

        public java.lang.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.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object