2.17.2: 2011-06-17

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

java.lang.Object
  extended by net.sf.basedb.util.overview.cache.IndexedCacheKey

public class IndexedCacheKey
extends Object

Cache key implementation that bundles another cache key with an index. This type of key is used when moving in the reverse direction from a raw bioassay to hybridization and labeled extracts. The reason is that in this case only the labeled extracts that belong to the same array index as the raw bioassay should be loaded. Thus, we also need different cache entries for different array indexes.

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  int index
           
 
Constructor Summary
IndexedCacheKey(Object cacheKey, int index)
           
 
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

index

private final int index
Constructor Detail

IndexedCacheKey

public IndexedCacheKey(Object cacheKey,
                       int index)
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