CHARSET, STRING_CHARSET_NAME
Constructor and Description |
---|
MediaStoreSignature(String mimeType,
long dateModified,
int orientation)
Constructor for
MediaStoreSignature . |
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) . |
void |
updateDiskCacheKey(MessageDigest messageDigest)
Adds all uniquely identifying information to the given digest.
|
public MediaStoreSignature(@Nullable String mimeType, long dateModified, int orientation)
MediaStoreSignature
.mimeType
- The mime type of the media store media. Ok to default to empty string "".
See MediaStore.MediaColumns.MIME_TYPE
or
MediaStore.MediaColumns.MIME_TYPE
.dateModified
- The date modified time of the media store media. Ok to default to 0. See
MediaStore.MediaColumns.DATE_MODIFIED
or
MediaStore.MediaColumns.DATE_MODIFIED
.orientation
- The orientation of the media store media. Ok to default to 0. See MediaStore.Images.ImageColumns.ORIENTATION
.public boolean equals(Object o)
Key
Key.hashCode()
.public int hashCode()
Key
Key.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