Package com.bumptech.glide.load
Interface Key
- All Known Subinterfaces:
Transformation<T>
- All Known Implementing Classes:
AndroidResourceSignature,BitmapDrawableTransformation,BitmapTransformation,CenterCrop,CenterInside,CircleCrop,DrawableTransformation,EmptySignature,FitCenter,GifDrawableTransformation,GlideUrl,GranularRoundedCorners,MediaStoreSignature,MultiTransformation,ObjectKey,Options,Rotate,RoundedCorners,UnitTransformation
public interface Key
An interface that uniquely identifies some put of data. Implementations must implement
Object.equals(Object) and Object.hashCode(). Implementations are generally expected to
add all uniquely identifying information used in in Object.equals(Object)} and
Object.hashCode()} to the given MessageDigest in updateDiskCacheKey(java.security.MessageDigest)}, although this requirement is not as strict
for partial cache key signatures.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanFor caching to work correctly, implementations must implement this method andhashCode().inthashCode()For caching to work correctly, implementations must implement this method andequals(Object).voidupdateDiskCacheKey(MessageDigest messageDigest) Adds all uniquely identifying information to the given digest.
-
Field Details
-
STRING_CHARSET_NAME
- See Also:
-
CHARSET
-
-
Method Details
-
updateDiskCacheKey
Adds all uniquely identifying information to the given digest.Note - Using
MessageDigest.reset()inside of this method will result in undefined behavior. -
equals
For caching to work correctly, implementations must implement this method andhashCode(). -
hashCode
int hashCode()For caching to work correctly, implementations must implement this method andequals(Object).
-