Code example for WeakHashMap

Methods: values

0
        assertSame("IdentityHashMap", map5.values(), map5.values());
 
        AbstractMap map6 = new TreeMap();
        assertSame("TreeMap", map6.values(), map6.values());
 
        AbstractMap map7 = new WeakHashMap();
        assertSame("WeakHashMap", map7.values(), map7.values());
    } 
 
    /** 
     * java.util.AbstractMap#clone() 
     */ 
    public void test_clone() { 
        class MyMap extends AbstractMap implements Cloneable {
            private Map map = new HashMap();
 
            public Set entrySet() {
                return map.entrySet();
            } 
 
            public Object put(Object key, Object value) {