ro.isdc.wro.cache
Class CacheValue
java.lang.Object
ro.isdc.wro.cache.CacheValue
- All Implemented Interfaces:
- Serializable
public final class CacheValue
- extends Object
- implements Serializable
Entry holding a resource content along with its associated hash.
- Author:
- Alex Objelean
- See Also:
- Serialized Form
valueOf
public static final CacheValue valueOf(String rawContent,
String hash)
- Factory method.
- Returns:
CacheValue
based on supplied values.
getRawContent
public String getRawContent()
- Returns:
- the content
setRawContent
public void setRawContent(String rawContent)
- Parameters:
rawContent
- the content to set
getHash
public String getHash()
- Returns:
- the hash
setHash
public void setHash(String hash)
- Parameters:
hash
- the hash to set
getGzippedContent
public byte[] getGzippedContent()
- Returns:
- the gzippedContent
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2008-2013. All Rights Reserved.