com.bumptech.glide.signature
Class StringSignature

java.lang.Object
  extended by com.bumptech.glide.signature.StringSignature
All Implemented Interfaces:
Key

public class StringSignature
extends Object
implements Key

A unique Signature that wraps a String.


Field Summary
 
Fields inherited from interface com.bumptech.glide.load.Key
STRING_CHARSET_NAME
 
Constructor Summary
StringSignature(String signature)
           
 
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

StringSignature

public StringSignature(String signature)
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in interface Key
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Key
Overrides:
hashCode 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.

Note - Using MessageDigest.reset() inside of this method will result in undefined behavior.

Specified by:
updateDiskCacheKey in interface Key
Throws:
UnsupportedEncodingException

toString

public String toString()
Overrides:
toString in class Object