Code example for WeakHashMap

Methods: clear

0
        return mSourceFactory.fromInt(sourceIx);
    } 
 
    /** Remove all cached geocache instances. Future references will reload from the database. */ 
    public void flushCache() { 
        mGeocaches.clear();
    } 
     
    public void flushCacheIcons() { 
        for (Geocache geocache : mGeocaches.values()) {
            geocache.flushIcons();
        } 
    } 
 
    /** Forces the geocache to be reloaded from the database the next time it is needed. */ 
    public void flushGeocache(CharSequence geocacheId) {
        mGeocaches.remove(geocacheId.toString());
    } 
 
    public Geocache fromCursor(Cursor cursor, SourceNameTranslator translator) {
        String sourceName = cursor.getString(4);