com.facebook.cache.common.CacheKey |
Known Indirect Subclasses |
Strongly typed cache key to be used instead of Object.
toString()
, equals(Object)
and hashCode()
methods must be implemented.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 boolean |
isResourceIdForDebugging()
Returns true if this key was constructed from a resource ID.
| ||||||||||
abstract String |
toString()
This is useful for instrumentation and debugging purposes.
|
Returns true if this key was constructed from this Uri.
Used for cases like deleting all keys for a given uri.
This method must be implemented, otherwise the cache keys will be be compared by reference.
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.
This method must be implemented with accordance to the equals(Object)
method.
Returns true if this key was constructed from a resource ID. If this ever changes, the disk cache entries corresponding to this cache key would be invalidated.
This is useful for instrumentation and debugging purposes.