Class IndexedCacheKey
- java.lang.Object
-
- 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 physical bioassay and extracts. The reason is that in this case only the extract that belong to the raw bioassay should be loaded. Thus, we also need different cache entries.- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2011-09-19 12:50:09 +0200 (må, 19 sep 2011) $
-
-
Constructor Summary
Constructors Constructor Description IndexedCacheKey(Object cacheKey, int index)
IndexedCacheKey(Object cacheKey, BasicItem item)
Create a cache key using the id of the BasicItem as the index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
Object
unwrap()
Get the original cache key passed to the constructor.
-
-
-
Field Detail
-
cacheKey
private final Object cacheKey
-
index
private final int index
-
-
Constructor Detail
-
IndexedCacheKey
public IndexedCacheKey(Object cacheKey, BasicItem item)
Create a cache key using the id of the BasicItem as the index.- Parameters:
cacheKey
- The parent cache keyitem
- A BasicItem or null (0 is used as index)
-
IndexedCacheKey
public IndexedCacheKey(Object cacheKey, int index)
-
-