
public class DiskCacheToken extends Object implements Serializable
DiskCache token that allows easy serialization.| Constructor and Description |
|---|
DiskCacheToken(long token)
Create a wrapper for a token associated with
DiskCache.INSTANCE. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
readByteArray()
Retrieve the underlying bytes.
|
<T> T |
readObject(Class<T> type)
Deserialize the underlying bytes as an object.
|
public DiskCacheToken(long token)
DiskCache.INSTANCE.public byte[] readByteArray()
public <T> T readObject(Class<T> type)
T - the type of the object to deserializetype - the type of the object to deserializeCopyright © 2018. All rights reserved.