Code example for WeakHashMap

Methods: getput

     * Get thread status and create one if specified. 
    private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) {
        ThreadStatus status = mThreadStatus.get(t);
        if (status == null) {
            status = new ThreadStatus();
            mThreadStatus.put(t, status);
        return status;
     * The following three methods are used to keep track of 
     * BitmapFaction.Options used for decoding and cancelling. 
    private synchronized void setDecodingOptions(Thread t,
            BitmapFactory.Options options) {
        getOrCreateThreadStatus(t).mOptions = options;
Connect your IDE to all the code out there  Get Codota for Java