Code example for WeakHashMap

Methods: keySet

0
        public void remove(Thread t) {
            mWeakCollection.remove(t);
        } 
 
        public Iterator<Thread> iterator() {
            return mWeakCollection.keySet().iterator();
        } 
    } 
 
    private final WeakHashMap<Thread, ThreadStatus> mThreadStatus = new WeakHashMap<Thread, ThreadStatus>();
 
    private static BitmapManager sManager = null;
 
    private BitmapManager() { 
    } 
 
    /** 
     * Get thread status and create one if specified. 
     */ 
    private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) {
        ThreadStatus status = mThreadStatus.get(t);