public class IndexedCacheKey extends Object
Modifier and Type | Field and Description |
---|---|
private Object |
cacheKey |
private int |
index |
Constructor and Description |
---|
IndexedCacheKey(Object cacheKey,
BasicItem item)
Create a cache key using the id of the BasicItem as the index.
|
IndexedCacheKey(Object cacheKey,
int index) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
Object |
unwrap()
Get the original cache key passed to the constructor.
|
private final Object cacheKey
private final int index
public IndexedCacheKey(Object cacheKey, BasicItem item)
cacheKey
- The parent cache keyitem
- A BasicItem or null (0 is used as index)public IndexedCacheKey(Object cacheKey, int index)