net.sf.basedb.util.overview.cache
Class DirectionalCacheKey
java.lang.Object
net.sf.basedb.util.overview.cache.DirectionalCacheKey
public class DirectionalCacheKey
- extends Object
Cache key implementation that bundles another cache key
with a node direction. The reason is that the node
tree looks very different for the same item depending
on the direction the item is loaded.
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2009-02-18 14:26:21 +0100 (Wed, 18 Feb 2009) $
cacheKey
private final Object cacheKey
direction
private final ChildNodeDirection direction
DirectionalCacheKey
public DirectionalCacheKey(Object cacheKey,
ChildNodeDirection direction)
unwrap
public Object unwrap()
- Get the original cache key passed to the constructor.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object