Code example for HashSet

Methods: clear

0
        return true; 
    } 
 
    private void releaseBitmapsAndClear() { 
        sThumbnailCache.clearForMediaItemId(mMediaItem.getId());
        mPending.clear();
        mGeneration = sGenerationCounter++;
    } 
} 
 
class ThumbnailKey { 
    public String mediaItemId;
    public int index;
 
    public ThumbnailKey() { 
    } 
 
    public ThumbnailKey(String id, int idx) {
        mediaItemId = id;
        index = idx;
    }