Package org.apache.commons.jcs3.engine
Class CacheElement<K,V> 
java.lang.Object
org.apache.commons.jcs3.engine.CacheElement<K,V> 
- All Implemented Interfaces:
- Serializable,- ICacheElement<K,- V> 
- Direct Known Subclasses:
- CacheElementSerialized,- PurgatoryElement
Generic element wrapper. Often stuffed inside another.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCacheElement(String cacheName, K key, V val) Constructor for the CacheElement objectCacheElement(String cacheName, K key, V val, IElementAttributes attrArg) Constructor for the CacheElement object
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGets the cacheName attribute of the CacheElement objectGets the IElementAttributes attribute of the CacheElement objectgetKey()Gets the key attribute of the CacheElement objectgetVal()Gets the val attribute of the CacheElement objectinthashCode()voidSets the attributes attribute of the CacheElement objecttoString()For debugging only.
- 
Constructor Details- 
CacheElementConstructor for the CacheElement object- Parameters:
- cacheName-
- key-
- val-
 
- 
CacheElementConstructor for the CacheElement object- Parameters:
- cacheName-
- key-
- val-
- attrArg-
 
 
- 
- 
Method Details- 
getCacheNameGets the cacheName attribute of the CacheElement object- Specified by:
- getCacheNamein interface- ICacheElement<K,- V> 
- Returns:
- The cacheName value
 
- 
getKeyGets the key attribute of the CacheElement object- Specified by:
- getKeyin interface- ICacheElement<K,- V> 
- Returns:
- The key value
 
- 
getValGets the val attribute of the CacheElement object- Specified by:
- getValin interface- ICacheElement<K,- V> 
- Returns:
- The val value
 
- 
setElementAttributesSets the attributes attribute of the CacheElement object- Specified by:
- setElementAttributesin interface- ICacheElement<K,- V> 
- Parameters:
- attr- The new IElementAttributes value
 
- 
getElementAttributesGets the IElementAttributes attribute of the CacheElement object- Specified by:
- getElementAttributesin interface- ICacheElement<K,- V> 
- Returns:
- The IElementAttributes value, never null
 
- 
equals
- 
hashCode
- 
toStringFor debugging only.
 
-