public class

BitmapCache

extends Cache<K, V>
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ java.util.HashMap<K, V>
       ↳ java.util.LinkedHashMap<K, V>
         ↳ com.c2call.sdk.pub.storage.Cache<K, V>
           ↳ com.c2call.sdk.pub.storage.BitmapCache

Summary

Nested Classes
class BitmapCache.GetRemoteBitmapThread  
Constants
int ERROR_FETCHING_BITMAP
int ERROR_INVALID_URI
int ERROR_NONE
Public Methods
synchronized Bitmap get(String key)
Bitmap getCachedRemoteBitmap(String url)
Set<String> getInvalidUris()
Bitmap getLocalBitmap(String path, Out<Integer> error)
Bitmap getLocalBitmap(String path)
Bitmap getRemoteBitmap(String url, Out<Integer> error)
void getRemoteBitmap(String url, IThreadFinishedListener callback)
static BitmapCache instance()
synchronized Bitmap put(String key, Bitmap value)
Protected Methods
boolean removeEldestEntry(Entry<String, Bitmap> eldest)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.storage.Cache
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Constants

public static final int ERROR_FETCHING_BITMAP

Constant Value: -2 (0xfffffffe)

public static final int ERROR_INVALID_URI

Constant Value: -1 (0xffffffff)

public static final int ERROR_NONE

Constant Value: 0 (0x00000000)

Public Methods

public synchronized Bitmap get (String key)

public Bitmap getCachedRemoteBitmap (String url)

public Set<String> getInvalidUris ()

public Bitmap getLocalBitmap (String path, Out<Integer> error)

public Bitmap getLocalBitmap (String path)

public Bitmap getRemoteBitmap (String url, Out<Integer> error)

public void getRemoteBitmap (String url, IThreadFinishedListener callback)

public static BitmapCache instance ()

public synchronized Bitmap put (String key, Bitmap value)

Protected Methods

protected boolean removeEldestEntry (Entry<String, Bitmap> eldest)