Class Key

  • All Implemented Interfaces:
    java.io.Serializable

    public class Key
    extends java.lang.Object
    implements java.io.Serializable
    Multipurpose key so that data can be cached either by content URL or cache file path.
    Author:
    Matt Ward
    See Also:
    Serialized Form
    • Method Detail

      • forUrl

        public static Key forUrl​(java.lang.String url)
      • forCacheFile

        public static Key forCacheFile​(java.lang.String path)
      • forCacheFile

        public static Key forCacheFile​(java.io.File file)
      • 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