Got rid of warning from ehcache. Wrote equals and hashCode for MergeLinkImpl

and HistoryLinkImpl (oops).  GetDirectoryListing now returns
Map<String, AVMNodeDescriptor>.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3156 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-06-20 00:56:36 +00:00
parent 8614d80962
commit 8cb3db78e3
11 changed files with 159 additions and 189 deletions

View File

@@ -72,4 +72,33 @@ class HistoryLinkImpl implements HistoryLink, Serializable
{
return fDescendent;
}
/**
* @param obj
* @return
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (!(obj instanceof HistoryLink))
{
return false;
}
HistoryLink o = (HistoryLink)obj;
return fAncestor.equals(o.getAncestor()) && fDescendent.equals(o.getDescendent());
}
/**
* @return
*/
@Override
public int hashCode()
{
return fAncestor.hashCode() + fDescendent.hashCode();
}
}