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