
com.nostra13.universalimageloader.cache.disc.naming.HashCodeFileNameGenerator Maven / Gradle / Ivy
package com.nostra13.universalimageloader.cache.disc.naming;
/**
* Names image file as image URI {@linkplain String#hashCode() hashcode}
*
* @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
*/
public class HashCodeFileNameGenerator implements FileNameGenerator {
@Override
public String generate(String imageUri) {
return String.valueOf(imageUri.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy