Package com.bumptech.glide.signature
Class ObjectKey
java.lang.Object
com.bumptech.glide.signature.ObjectKey
- All Implemented Interfaces:
Key
Wraps an
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.
-
Field Summary
Fields inherited from interface com.bumptech.glide.load.Key
CHARSET, STRING_CHARSET_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFor caching to work correctly, implementations must implement this method andKey.hashCode().inthashCode()For caching to work correctly, implementations must implement this method andKey.equals(Object).toString()voidupdateDiskCacheKey(MessageDigest messageDigest) Adds all uniquely identifying information to the given digest.
-
Constructor Details
-
ObjectKey
-
-
Method Details
-
toString
-
equals
Description copied from interface:KeyFor caching to work correctly, implementations must implement this method andKey.hashCode(). -
hashCode
public int hashCode()Description copied from interface:KeyFor caching to work correctly, implementations must implement this method andKey.equals(Object). -
updateDiskCacheKey
Description copied from interface:KeyAdds all uniquely identifying information to the given digest.Note - Using
MessageDigest.reset()inside of this method will result in undefined behavior.- Specified by:
updateDiskCacheKeyin interfaceKey
-