java.lang.Object |
↳ |
com.facebook.cache.common.SimpleCacheKey |
Known Direct Subclasses
|
Class Overview
CacheKey
implementation that is a simple wrapper around a String object.
Users of CacheKey should construct it by providing a unique string that unambiguously
identifies the cached resource.
Summary
Public Methods |
boolean
|
containsUri(Uri uri)
Returns true if this key was constructed from this Uri.
|
boolean
|
equals(Object o)
|
String
|
getUriString()
Returns a string representation of the URI at the heart of the cache key.
|
int
|
hashCode()
|
String
|
toString()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.cache.common.CacheKey
abstract
boolean
|
containsUri(Uri uri)
Returns true if this key was constructed from this Uri.
|
abstract
boolean
|
equals(Object o)
This method must be implemented, otherwise the cache keys will be be compared by reference.
|
abstract
String
|
getUriString()
Returns a string representation of the URI at the heart of the cache key.
|
abstract
int
|
hashCode()
This method must be implemented with accordance to the equals(Object) method.
|
abstract
String
|
toString()
This is useful for instrumentation and debugging purposes.
|
|
Public Constructors
public
SimpleCacheKey
(String key)
Public Methods
public
boolean
containsUri
(Uri uri)
Returns true if this key was constructed from this Uri.
Used for cases like deleting all keys for a given uri.
public
boolean
equals
(Object o)
public
String
getUriString
()
Returns a string representation of the URI at the heart of the cache key. In cases of multiple
keys being contained, the first is returned.
public
String
toString
()