com.bumptech.glide.load.engine.cache
Class StringKey

java.lang.Object
  extended by com.bumptech.glide.load.engine.cache.StringKey
All Implemented Interfaces:
Key

public class StringKey
extends Object
implements Key

A Key that wraps a single String.


Constructor Summary
StringKey(String key)
           
 
Method Summary
 boolean equals(Object o)
          
 int hashCode()
          
 String toString()
           
 void updateDiskCacheKey(MessageDigest messageDigest)
          Adds all uniquely identifying information to the given digest.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringKey

public StringKey(String key)
Method Detail

equals

public boolean equals(Object o)
Description copied from interface: Key

Specified by:
equals in interface Key
Overrides:
equals in class Object

hashCode

public int hashCode()
Description copied from interface: Key

Specified by:
hashCode in interface Key
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

updateDiskCacheKey

public void updateDiskCacheKey(MessageDigest messageDigest)
                        throws UnsupportedEncodingException
Description copied from interface: Key
Adds all uniquely identifying information to the given digest.

Specified by:
updateDiskCacheKey in interface Key
Throws:
UnsupportedEncodingException