public final class ObjectKey extends Object implements Key
Object
, delegating equals(Object)
and hashCode()
to
the wrapped Object and providing the bytes of the result of the Object's toString()
method to the MessageDigest
in
updateDiskCacheKey(java.security.MessageDigest)
.
The Object's toString()
method must be unique and suitable for use as a disk cache
key.
CHARSET, STRING_CHARSET_NAME
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
void |
updateDiskCacheKey(MessageDigest messageDigest)
Adds all uniquely identifying information to the given digest.
|
public ObjectKey(Object object)
public boolean equals(Object o)
public int hashCode()
public void updateDiskCacheKey(MessageDigest messageDigest)
Key
Note - Using MessageDigest.reset()
inside of this method will result
in undefined behavior.
updateDiskCacheKey
in interface Key