Searched refs:WeakHashMap (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/test/java/tests/api/java/util/
H A DWeakHashMapTest.java27 import java.util.WeakHashMap;
46 WeakHashMap whm;
49 * java.util.WeakHashMap#WeakHashMap()
52 // Test for method java.util.WeakHashMap()
53 new Support_MapTest2(new WeakHashMap()).runTest();
55 whm = new WeakHashMap();
65 * java.util.WeakHashMap#WeakHashMap(int)
68 // Test for method java.util.WeakHashMap(in
[all...]
H A DAbstractMapTest.java35 import java.util.WeakHashMap;
95 AbstractMap map7 = new WeakHashMap();
96 assertSame("WeakHashMap", map7.keySet(), map7.keySet());
127 AbstractMap map7 = new WeakHashMap();
129 assertSame("WeakHashMap", map7.remove(key), value);
159 AbstractMap map7 = new WeakHashMap();
160 assertSame("WeakHashMap", map7.values(), map7.values());
/libcore/luni/src/main/java/java/nio/charset/
H A DCoderResult.java21 import java.util.WeakHashMap;
73 private static WeakHashMap<Integer, CoderResult> _malformedErrors = new WeakHashMap<Integer, CoderResult>();
79 private static WeakHashMap<Integer, CoderResult> _unmappableErrors = new WeakHashMap<Integer, CoderResult>();
/libcore/luni/src/main/java/java/util/
H A DWeakHashMap.java24 * WeakHashMap is an implementation of Map with keys which are WeakReferences. A
34 public class WeakHashMap<K, V> extends AbstractMap<K, V> implements Map<K, V> { class in inherits:AbstractMap,Map
185 * Constructs a new empty {@code WeakHashMap} instance.
187 public WeakHashMap() { method in class:WeakHashMap
192 * Constructs a new {@code WeakHashMap} instance with the specified
200 public WeakHashMap(int capacity) { method in class:WeakHashMap
213 * Constructs a new {@code WeakHashMap} instance with the specified capacity
224 public WeakHashMap(int capacity, float loadFactor) { method in class:WeakHashMap
237 * Constructs a new {@code WeakHashMap} instance containing the mappings
243 public WeakHashMap(Ma method in class:WeakHashMap
[all...]
H A DResourceBundle.java113 private static final WeakHashMap<Object, Hashtable<String, ResourceBundle>> cache
114 = new WeakHashMap<Object, Hashtable<String, ResourceBundle>>();
/libcore/luni/src/main/java/java/lang/reflect/
H A DProxy.java24 import java.util.WeakHashMap;
39 private static final Map<ClassLoader, Map<String, WeakReference<Class<?>>>> loaderCache = new WeakHashMap<ClassLoader, Map<String, WeakReference<Class<?>>>>();
42 private static final Map<Class<?>, String> proxyCache = new WeakHashMap<Class<?>, String>();
/libcore/luni/src/test/java/libcore/java/text/
H A DOldAttributedStringTest.java26 import java.util.WeakHashMap;
170 new WeakHashMap<AttributedCharacterIterator.Attribute, String>());
185 Map<AttributedCharacterIterator.Attribute, String> whm = new WeakHashMap<AttributedCharacterIterator.Attribute, String>();
307 as = new AttributedString("123", new WeakHashMap());
329 AttributedString as = new AttributedString("123", new WeakHashMap());
361 Map<AttributedCharacterIterator.Attribute, String> whm = new WeakHashMap<AttributedCharacterIterator.Attribute, String>();
/libcore/luni/src/main/java/java/io/
H A DObjectStreamClass.java34 import java.util.WeakHashMap;
1064 WeakHashMap<Class<?>, ObjectStreamClass> tlc = getCache();
1078 private static SoftReference<ThreadLocal<WeakHashMap<Class<?>, ObjectStreamClass>>> storage =
1079 new SoftReference<ThreadLocal<WeakHashMap<Class<?>, ObjectStreamClass>>>(null);
1081 private static WeakHashMap<Class<?>, ObjectStreamClass> getCache() {
1082 ThreadLocal<WeakHashMap<Class<?>, ObjectStreamClass>> tls = storage.get();
1084 tls = new ThreadLocal<WeakHashMap<Class<?>, ObjectStreamClass>>() {
1085 public WeakHashMap<Class<?>, ObjectStreamClass> initialValue() {
1086 return new WeakHashMap<Class<?>, ObjectStreamClass>();
1089 storage = new SoftReference<ThreadLocal<WeakHashMap<Clas
[all...]
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
H A DAnnotationFactory.java31 import java.util.WeakHashMap;
55 cache = new WeakHashMap<Class<? extends Annotation>, AnnotationMember[]>();
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDocumentImpl.java22 import java.util.WeakHashMap;
74 private WeakHashMap<NodeImpl, Map<String, UserData>> nodeToUserData;
497 nodeToUserData = new WeakHashMap<NodeImpl, Map<String, UserData>>();

Completed in 693 milliseconds