org.alfresco.repo.content.caching
Class Key

java.lang.Object
  extended by org.alfresco.repo.content.caching.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.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object obj)
           
static Key forCacheFile(java.io.File file)
           
static Key forCacheFile(java.lang.String path)
           
static Key forUrl(java.lang.String url)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.