2.17.2: 2011-06-17

net.sf.basedb.util.overview.cache
Class DirectionalCacheKey

java.lang.Object
  extended by 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) $

Field Summary
private  Object cacheKey
           
private  ChildNodeDirection direction
           
 
Constructor Summary
DirectionalCacheKey(Object cacheKey, ChildNodeDirection direction)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 Object unwrap()
          Get the original cache key passed to the constructor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheKey

private final Object cacheKey

direction

private final ChildNodeDirection direction
Constructor Detail

DirectionalCacheKey

public DirectionalCacheKey(Object cacheKey,
                           ChildNodeDirection direction)
Method Detail

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

2.17.2: 2011-06-17