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 KeyAn interface that uniquely identifies some put of data. Implementations must implementObject.equals(Object)andObject.hashCode(). Implementations are generally expected to add all uniquely identifying information used in inObject.equals(Object)} andObject.hashCode()} to the givenMessageDigestinupdateDiskCacheKey(java.security.MessageDigest)}, although this requirement is not as strict for partial cache key signatures.
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.CharsetCHARSETstatic java.lang.StringSTRING_CHARSET_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object o)For caching to work correctly, implementations must implement this method andhashCode().inthashCode()For caching to work correctly, implementations must implement this method andequals(Object).voidupdateDiskCacheKey(java.security.MessageDigest messageDigest)Adds all uniquely identifying information to the given digest.
-
-
-
Field Detail
-
STRING_CHARSET_NAME
static final java.lang.String STRING_CHARSET_NAME
- See Also:
- Constant Field Values
-
CHARSET
static final java.nio.charset.Charset CHARSET
-
-
Method Detail
-
updateDiskCacheKey
void updateDiskCacheKey(@NonNull java.security.MessageDigest messageDigest)Adds all uniquely identifying information to the given digest.Note - Using
MessageDigest.reset()inside of this method will result in undefined behavior.
-
equals
boolean equals(java.lang.Object o)
For caching to work correctly, implementations must implement this method andhashCode().- Overrides:
equalsin classjava.lang.Object
-
hashCode
int hashCode()
For caching to work correctly, implementations must implement this method andequals(Object).- Overrides:
hashCodein classjava.lang.Object
-
-