Class ResourceUtil

  • All Implemented Interfaces:
    Resource

    public class ResourceUtil
    extends java.lang.Object
    implements Resource
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String resourceName  
      protected int resourceType  
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceUtil​(java.lang.String resourceName, int resourceType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String resourceName()
      returns the name of the resource
      int resourceType()
      an integer representing the type of the resource.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resourceName

        protected java.lang.String resourceName
      • resourceType

        protected int resourceType
    • Constructor Detail

      • ResourceUtil

        public ResourceUtil​(java.lang.String resourceName,
                            int resourceType)
    • Method Detail

      • resourceName

        public java.lang.String resourceName()
        Description copied from interface: Resource
        returns the name of the resource
        Specified by:
        resourceName in interface Resource
      • resourceType

        public int resourceType()
        Description copied from interface: Resource
        an integer representing the type of the resource.
        Specified by:
        resourceType in interface Resource
        Returns:
        the type identitfyer of the resource
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object