Package org.apache.commons.jcs3.engine
Class CacheElementSerialized<K,V> 
java.lang.Object
org.apache.commons.jcs3.engine.CacheElement<K,V>
 
org.apache.commons.jcs3.engine.CacheElementSerialized<K,V> 
- All Implemented Interfaces:
- Serializable,- ICacheElement<K,,- V> - ICacheElementSerialized<K,- V> 
public class CacheElementSerialized<K,V> 
extends CacheElement<K,V>
implements ICacheElementSerialized<K,V>  
Either serialized value or the value should be null;
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCacheElementSerialized(String cacheNameArg, K keyArg, byte[] serializedValueArg, IElementAttributes elementAttributesArg) Constructs a usable wrapper.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbyte[]Gets the value attribute of the ICacheElementSerialized object.toString()For debugging only.Methods inherited from class org.apache.commons.jcs3.engine.CacheElementgetCacheName, getElementAttributes, getKey, getVal, hashCode, setElementAttributesMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheElementgetCacheName, getElementAttributes, getKey, getVal, setElementAttributes
- 
Constructor Details- 
CacheElementSerializedpublic CacheElementSerialized(String cacheNameArg, K keyArg, byte[] serializedValueArg, IElementAttributes elementAttributesArg) Constructs a usable wrapper.- Parameters:
- cacheNameArg-
- keyArg-
- serializedValueArg-
- elementAttributesArg-
 
 
- 
- 
Method Details- 
getSerializedValueDescription copied from interface:ICacheElementSerializedGets the value attribute of the ICacheElementSerialized object. This is the value the client cached serialized by some mechanism.- Specified by:
- getSerializedValuein interface- ICacheElementSerialized<K,- V> 
- Returns:
- byte[]
 
- 
equals- Overrides:
- equalsin class- CacheElement<K,- V> 
- Parameters:
- obj- other object
- Returns:
- true if this object key equals the key of obj
 
- 
toStringFor debugging only.- Overrides:
- toStringin class- CacheElement<K,- V> 
- Returns:
- debugging string.
 
 
-