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)
For caching to work correctly, implementations must implement this method and
Key.hashCode(). |
int |
hashCode()
For caching to work correctly, implementations must implement this method and
Key.equals(Object). |
String |
toString() |
void |
updateDiskCacheKey(MessageDigest messageDigest)
Adds all uniquely identifying information to the given digest.
|
public boolean equals(Object o)
KeyKey.hashCode().public int hashCode()
KeyKey.equals(Object).public void updateDiskCacheKey(@NonNull MessageDigest messageDigest)
Key Note - Using MessageDigest.reset() inside of this method will result
in undefined behavior.
updateDiskCacheKey in interface Key