com.opencms.template.cache
Class CmsUriDescriptor

java.lang.Object
  |
  +--com.opencms.template.cache.CmsUriDescriptor

public class CmsUriDescriptor
extends Object

This descriptor is used to locate CmsUri-Object with the CmsUriLocator. It is the key for a CmsUri.

Author:
Andreas Schouten

Constructor Summary
CmsUriDescriptor(String uri)
          Creates a new UriDescriptor
 
Method Summary
 boolean equals(Object obj)
          Compares the overgiven object with this object.
 String getKey()
          Returns the uri.
 int hashCode()
          We have to return a hashcode for the hashtable.
 String toString()
          toString methode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsUriDescriptor

public CmsUriDescriptor(String uri)
Creates a new UriDescriptor

Parameters:
uri - - the uri
Method Detail

getKey

public String getKey()
Returns the uri.

Returns:
the uri

equals

public boolean equals(Object obj)
Compares the overgiven object with this object.

Overrides:
equals in class Object
Returns:
true, if the object is identically else it returns false.

hashCode

public int hashCode()
We have to return a hashcode for the hashtable. We can use the hashcode from the String uri.

Overrides:
hashCode in class Object
Returns:
The hashCode.

toString

public String toString()
toString methode

Overrides:
toString in class Object