Back to Fresco

BitmapMemoryCacheKey

docs/javadoc/reference/com/facebook/imagepipeline/cache/BitmapMemoryCacheKey.html

3.6.018.0 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

public class

BitmapMemoryCacheKey

extends Object
implements CacheKey

| java.lang.Object | | ↳ | com.facebook.imagepipeline.cache.BitmapMemoryCacheKey |

Class Overview

Cache key for BitmapMemoryCache

Summary

Public Constructors
Public Methods
boolean
Returns true if this key was constructed from this Uri.
boolean
Object
long
String
String
Returns a string representation of the URI at the heart of the cache key.
int
boolean
Returns true if this key was constructed from a resource ID.
String

| [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 boolean | isResourceIdForDebugging() Returns true if this key was constructed from a resource ID. | | abstract String | toString() This is useful for instrumentation and debugging purposes. |

|

Public Constructors

public BitmapMemoryCacheKey(String sourceString, ResizeOptions resizeOptions, RotationOptions rotationOptions, ImageDecodeOptions imageDecodeOptions, CacheKey postprocessorCacheKey, String postprocessorName, Object callerContext)

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 Object getCallerContext()

public long getInBitmapCacheSince()

public String getPostprocessorName()

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 int hashCode()

public boolean isResourceIdForDebugging()

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.

public String toString()

+Generated by Doclava. +