1 package com.bumptech.glide.load; 2 3 import java.io.UnsupportedEncodingException; 4 import java.security.MessageDigest; 5 6 /** 7 * A very generic interface that must implement {@link #equals(Object)} and {@link #hashCode()} to include a set of 8 * uniquely identifying information for the object(s) represented by this key. Keys are used as cache keys so they must 9 * be unique within a given dataset. 10 * 11 */ 12 public interface Key { 13 14 /** 15 * Adds all uniquely identifying information to the given digest. 16 */ 17 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException; 18 19 } 20