com.bumptech.glide.load.Key Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.load;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
/**
* An interface that uniquely identifies some set of data. Implementations must implement {@link Object#equals(Object)}
* and {@link Object#hashCode()}. Implementations are generally expected to add all uniquely identifying information
* used in in {@link java.lang.Object#equals(Object)}} and {@link Object#hashCode()}} to the given
* {@link java.security.MessageDigest} in {@link #updateDiskCacheKey(java.security.MessageDigest)}}, although this
* requirement is not as strict for partial cache key signatures.
*/
public interface Key {
String STRING_CHARSET_NAME = "UTF-8";
/**
* Adds all uniquely identifying information to the given digest.
*
*
* Note - Using {@link java.security.MessageDigest#reset()} inside of this method will result in undefined
* behavior.
*
*/
void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException;
@Override
boolean equals(Object o);
@Override
int hashCode();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy