Searched refs:ht (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | HashtableTest.java | 80 Hashtable<String, String> ht = new Hashtable<>(); in test_replaceAll() local 81 ht.put("one", "1"); in test_replaceAll() 82 ht.put("two", "2"); in test_replaceAll() 83 ht.put("three", "3"); in test_replaceAll() 85 ht.replaceAll((k, v) -> k + v); in test_replaceAll() 86 assertEquals("one1", ht.get("one")); in test_replaceAll() 87 assertEquals("two2", ht.get("two")); in test_replaceAll() 88 assertEquals("three3", ht.get("three")); in test_replaceAll() 89 assertEquals(3, ht.size()); in test_replaceAll() 92 ht.replaceAll(new java.util.function.BiFunction<String, String, String>() { in test_replaceAll() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | HashtableTest.java | 115 Hashtable ht = new Hashtable(map); in test_ConstructorLjava_util_Map() local 117 ht.get("Gah") == firstVal); in test_ConstructorLjava_util_Map() 119 ht.get("Ooga") == secondVal); in test_ConstructorLjava_util_Map() 389 final Hashtable ht = new Hashtable(); in test_isEmpty() local 390 ht.put("0", ""); in test_isEmpty() 393 while (!ht.isEmpty()) in test_isEmpty() 395 ht.put("final", ""); in test_isEmpty() 400 synchronized (ht) { in test_isEmpty() 401 ht.remove(String.valueOf(i - 1)); in test_isEmpty() 402 ht.put(String.valueOf(i), ""); in test_isEmpty() [all …]
|
D | AbstractMapTest.java | 351 Hashtable ht = new Hashtable(); 353 ht.put("this", "that"); 354 amt.putAll(ht); 356 assertEquals("Should be equal", amt, ht);
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 1015 long ht = this.getTime(); in hashCode() local 1016 return (int) ht ^ (int) (ht >> 32); in hashCode()
|