Searched refs:singletonMap (Results 1 - 7 of 7) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DCookieManager.java144 return Collections.singletonMap("Cookie", Collections.singletonList(result.toString()));
/libcore/luni/src/test/java/tests/api/java/util/
H A DCollectionsTest.java2149 Map single = Collections.singletonMap(key, value);
2155 assertFalse(Collections.singletonMap(null, null).containsKey(key));
2156 assertFalse(Collections.singletonMap(null, null).containsValue(value));
2157 assertTrue(Collections.singletonMap(null, null).containsKey(null));
2158 assertTrue(Collections.singletonMap(null, null).containsValue(null));
H A DHashtableTest.java143 Map<String, Void> map = Collections.singletonMap("Dog", null);
/libcore/json/src/test/java/org/json/
H A DJSONArrayTest.java310 array.put(new JSONObject(Collections.singletonMap("x", 6)));
H A DJSONObjectTest.java664 JSONObject object = new JSONObject(Collections.singletonMap("foo", Double.NaN));
/libcore/luni/src/test/java/libcore/java/net/
H A DCookiesTest.java571 return Collections.singletonMap("Set-Cookie", Arrays.asList(headers));
/libcore/luni/src/main/java/java/util/
H A DCollections.java1850 public static <K, V> Map<K, V> singletonMap(K key, V value) { method in class:Collections

Completed in 1590 milliseconds