public interface Key
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.Modifier and Type | Field and Description |
---|---|
static java.nio.charset.Charset |
CHARSET |
static java.lang.String |
STRING_CHARSET_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
For caching to work correctly, implementations must implement this method and
hashCode() . |
int |
hashCode()
For caching to work correctly, implementations must implement this method and
equals(Object) . |
void |
updateDiskCacheKey(java.security.MessageDigest messageDigest)
Adds all uniquely identifying information to the given digest.
|
static final java.lang.String STRING_CHARSET_NAME
static final java.nio.charset.Charset CHARSET
void updateDiskCacheKey(@NonNull java.security.MessageDigest messageDigest)
Note - Using MessageDigest.reset()
inside of this method will result
in undefined behavior.
boolean equals(java.lang.Object o)
hashCode()
.equals
in class java.lang.Object
int hashCode()
equals(Object)
.hashCode
in class java.lang.Object