com.bumptech.glide.signature.EmptySignature 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.signature;
import com.bumptech.glide.load.Key;
import java.security.MessageDigest;
/**
* An empty key that is always equal to all other empty keys.
*/
public final class EmptySignature implements Key {
private static final EmptySignature EMPTY_KEY = new EmptySignature();
public static EmptySignature obtain() {
return EMPTY_KEY;
}
private EmptySignature() {
// Empty.
}
@Override
public String toString() {
return "EmptySignature";
}
@Override
public void updateDiskCacheKey(MessageDigest messageDigest) {
// Do nothing.
}
}