Class Key
- java.lang.Object
-
- org.alfresco.repo.content.caching.Key
-
- All Implemented Interfaces:
java.io.Serializable
public class Key extends java.lang.Object implements java.io.SerializableMultipurpose key so that data can be cached either by content URL or cache file path.- Author:
- Matt Ward
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static KeyforCacheFile(java.io.File file)static KeyforCacheFile(java.lang.String path)static KeyforUrl(java.lang.String url)inthashCode()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-