com.voidsearch.voidbase.apps.cache.containers
Class CacheContent

java.lang.Object
  extended by com.voidsearch.voidbase.apps.cache.containers.CacheContent
Direct Known Subclasses:
CacheValue

public abstract class CacheContent
extends java.lang.Object

Placeholder for all other Cache content clases for key, value etc.


Field Summary
 byte[] binary
           
 java.lang.String text
           
 CacheContentType type
           
 
Constructor Summary
CacheContent()
          Creates new instance of a CacheContent
CacheContent(byte[] value)
          Creates new instance of a CacheContent with bytearray
CacheContent(java.lang.String value)
          Creates new instance of a CacheContent with String value
 
Method Summary
 java.lang.String toString()
          Returns String from CacheContent object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

public java.lang.String text

binary

public byte[] binary

type

public CacheContentType type
Constructor Detail

CacheContent

public CacheContent()
Creates new instance of a CacheContent


CacheContent

public CacheContent(java.lang.String value)
Creates new instance of a CacheContent with String value

Parameters:
value -

CacheContent

public CacheContent(byte[] value)
Creates new instance of a CacheContent with bytearray

Parameters:
value -
Method Detail

toString

public java.lang.String toString()
Returns String from CacheContent object

Overrides:
toString in class java.lang.Object
Returns:
serialized content of CacheContent object


Copyright © 2009. All Rights Reserved.