com.supermap.services.util.cache

Class CacheItem

  • java.lang.Object
    • com.supermap.services.util.cache.CacheItem


  • public class CacheItem
    extends java.lang.Object
    

    Cache item information.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      Rectangle2D bounds
      The corresponding range of the image file
      java.lang.String filePath
      File Path
      java.lang.String hashCode
      The corresponding hash code of the image, which corresponds to the map parameter.
      double scale
      The corresponding scale of the image.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CacheItem() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object otherObj)
      Determine whether this object is equal to another.
      int hashCode()
      Returns the corresponding hash code.
      java.lang.String toString()
      The conversion from object to string.
      • Methods inherited from class java.lang.Object

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

      • filePath

        public java.lang.String filePath
        

        File Path

      • bounds

        public Rectangle2D bounds
        

        The corresponding range of the image file

      • hashCode

        public java.lang.String hashCode
        

        The corresponding hash code of the image, which corresponds to the map parameter.

      • scale

        public double scale
        

        The corresponding scale of the image.

    • Constructor Detail

      • CacheItem

        public CacheItem()
        
    • Method Detail

      • toString

        public java.lang.String toString()
        

        The conversion from object to string.

        Overrides:
        toString in class java.lang.Object
        Returns:
        Returns the string format of the object.
      • equals

        public boolean equals(java.lang.Object otherObj)
        

        Determine whether this object is equal to another.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        otherObj - object to be compared.
        Returns:
        other object.
      • hashCode

        public int hashCode()
        

        Returns the corresponding hash code.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash code.