-
- All Implemented Interfaces:
-
com.facebook.cache.common.CacheKey
public class SimpleCacheKey implements CacheKey
-
-
Constructor Summary
Constructors Constructor Description SimpleCacheKey(String key)SimpleCacheKey(String key, boolean isResourceIdForDebugging)
-
Method Summary
Modifier and Type Method Description StringtoString()booleanequals(@Nullable() Object o)inthashCode()booleancontainsUri(Uri uri)Returns true if this key was constructed from this Uri. StringgetUriString()Returns a string representation of the URI at the heart of the cache key. booleanisResourceIdForDebugging()Returns true if this key was constructed from a resource ID. -
-
Method Detail
-
hashCode
int hashCode()
-
containsUri
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.
-
getUriString
String getUriString()
Returns a string representation of the URI at the heart of the cache key. In cases of multiplekeys being contained, the first is returned.
-
isResourceIdForDebugging
boolean isResourceIdForDebugging()
Returns true if this key was constructed from a resource ID. If this ever changes, the diskcache entries corresponding to this cache key would be invalidated.
-
-
-
-