/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSubMapTest.java | 211 (e.getKey().equals(one) && e.getValue().equals("A")) || 212 (e.getKey().equals(two) && e.getValue().equals("B")) || 213 (e.getKey().equals(three) && e.getValue().equals("C")) || 214 (e.getKey().equals(four) && e.getValue().equals("D")) || 215 (e.getKey().equals(five) && e.getValue().equals("E"))); 250 assertEquals(two, e1.getKey()); 253 assertEquals(five, e2.getKey()); 268 assertEquals(four, e1.getKey()); 271 assertEquals(one, e2.getKey()); 286 assertEquals(three, e1.getKey()); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 254 (e.getKey().equals(one) && e.getValue().equals("A")) || 255 (e.getKey().equals(two) && e.getValue().equals("B")) || 256 (e.getKey().equals(three) && e.getValue().equals("C")) || 257 (e.getKey().equals(four) && e.getValue().equals("D")) || 258 (e.getKey().equals(five) && e.getValue().equals("E"))); 363 assertEquals(two, e1.getKey()); 366 assertEquals(five, e2.getKey()); 381 assertEquals(four, e1.getKey()); 384 assertEquals(one, e2.getKey()); 399 assertEquals(three, e1.getKey()); [all …]
|
D | ConcurrentSkipListMapTest.java | 295 (e.getKey().equals(one) && e.getValue().equals("A")) || 296 (e.getKey().equals(two) && e.getValue().equals("B")) || 297 (e.getKey().equals(three) && e.getValue().equals("C")) || 298 (e.getKey().equals(four) && e.getValue().equals("D")) || 299 (e.getKey().equals(five) && e.getValue().equals("E"))); 314 (e.getKey().equals(one) && e.getValue().equals("A")) || 315 (e.getKey().equals(two) && e.getValue().equals("B")) || 316 (e.getKey().equals(three) && e.getValue().equals("C")) || 317 (e.getKey().equals(four) && e.getValue().equals("D")) || 318 (e.getKey().equals(five) && e.getValue().equals("E"))); [all …]
|
D | TreeMapTest.java | 278 (e.getKey().equals(one) && e.getValue().equals("A")) || 279 (e.getKey().equals(two) && e.getValue().equals("B")) || 280 (e.getKey().equals(three) && e.getValue().equals("C")) || 281 (e.getKey().equals(four) && e.getValue().equals("D")) || 282 (e.getKey().equals(five) && e.getValue().equals("E"))); 297 (e.getKey().equals(one) && e.getValue().equals("A")) || 298 (e.getKey().equals(two) && e.getValue().equals("B")) || 299 (e.getKey().equals(three) && e.getValue().equals("C")) || 300 (e.getKey().equals(four) && e.getValue().equals("D")) || 301 (e.getKey().equals(five) && e.getValue().equals("E"))); [all …]
|
D | EntryTest.java | 36 assertEquals(k1, e.getKey()); in testConstructor1() 45 assertEquals(k1, s.getKey()); in testConstructor2() 55 assertEquals(k1, e.getKey()); in testConstructor3() 65 assertEquals(k1, s.getKey()); in testConstructor4() 115 assertEquals(k1, e.getKey()); in testSetValue1() 128 assertEquals(k1, s.getKey()); in testSetValue2()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TreeSubMapTest.java | 234 (e.getKey().equals(one) && e.getValue().equals("A")) || 235 (e.getKey().equals(two) && e.getValue().equals("B")) || 236 (e.getKey().equals(three) && e.getValue().equals("C")) || 237 (e.getKey().equals(four) && e.getValue().equals("D")) || 238 (e.getKey().equals(five) && e.getValue().equals("E"))); 273 assertEquals(two, e1.getKey()); 276 assertEquals(five, e2.getKey()); 291 assertEquals(four, e1.getKey()); 294 assertEquals(one, e2.getKey()); 309 assertEquals(three, e1.getKey()); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 277 (e.getKey().equals(one) && e.getValue().equals("A")) || 278 (e.getKey().equals(two) && e.getValue().equals("B")) || 279 (e.getKey().equals(three) && e.getValue().equals("C")) || 280 (e.getKey().equals(four) && e.getValue().equals("D")) || 281 (e.getKey().equals(five) && e.getValue().equals("E"))); 386 assertEquals(two, e1.getKey()); 389 assertEquals(five, e2.getKey()); 404 assertEquals(four, e1.getKey()); 407 assertEquals(one, e2.getKey()); 422 assertEquals(three, e1.getKey()); [all …]
|
D | ConcurrentSkipListMapTest.java | 318 (e.getKey().equals(one) && e.getValue().equals("A")) || 319 (e.getKey().equals(two) && e.getValue().equals("B")) || 320 (e.getKey().equals(three) && e.getValue().equals("C")) || 321 (e.getKey().equals(four) && e.getValue().equals("D")) || 322 (e.getKey().equals(five) && e.getValue().equals("E"))); 337 (e.getKey().equals(one) && e.getValue().equals("A")) || 338 (e.getKey().equals(two) && e.getValue().equals("B")) || 339 (e.getKey().equals(three) && e.getValue().equals("C")) || 340 (e.getKey().equals(four) && e.getValue().equals("D")) || 341 (e.getKey().equals(five) && e.getValue().equals("E"))); [all …]
|
D | TreeMapTest.java | 301 (e.getKey().equals(one) && e.getValue().equals("A")) || 302 (e.getKey().equals(two) && e.getValue().equals("B")) || 303 (e.getKey().equals(three) && e.getValue().equals("C")) || 304 (e.getKey().equals(four) && e.getValue().equals("D")) || 305 (e.getKey().equals(five) && e.getValue().equals("E"))); 320 (e.getKey().equals(one) && e.getValue().equals("A")) || 321 (e.getKey().equals(two) && e.getValue().equals("B")) || 322 (e.getKey().equals(three) && e.getValue().equals("C")) || 323 (e.getKey().equals(four) && e.getValue().equals("D")) || 324 (e.getKey().equals(five) && e.getValue().equals("E"))); [all …]
|
D | EntryTest.java | 59 assertEquals(k1, e.getKey()); in testConstructor1() 68 assertEquals(k1, s.getKey()); in testConstructor2() 78 assertEquals(k1, e.getKey()); in testConstructor3() 88 assertEquals(k1, s.getKey()); in testConstructor4() 138 assertEquals(k1, e.getKey()); in testSetValue1() 151 assertEquals(k1, s.getKey()); in testSetValue2()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RefSortedMap.java | 51 public K getKey() { in getKey() method in RefSortedMap.MapEntry 66 return (getKey() == null ? 0 : getKey().hashCode()) in hashCode() 76 return (getKey() == null ? entry.getKey() == null : getKey().equals(entry in equals() 77 .getKey())) in equals() 123 && isInRange(entries.get(offset + 1).getKey()); in entrySet() 182 if (-idx - 1 >= entries.size() || !isInRange(entries.get(-idx - 1).getKey())) { 185 return entries.get(-idx - 1).getKey(); 205 if (idx < 0 || !isInRange(entries.get(idx).getKey())) { 208 return entries.get(idx).getKey(); 275 return entries.get(0).getKey(); [all …]
|
D | SimpleEntryTest.java | 36 public Object getKey() { in getKey() method in SimpleEntryTest.NullEntry 54 assertEquals(1, testEntry.getKey()); in test_SimpleEntry_Constructor_LEntry() 59 assertNull(testEntry.getKey()); in test_SimpleEntry_Constructor_LEntry() 72 assertEquals(1, entry.getKey()); in test_SimpleEntry_getKey() 74 assertNull(entry.getKey()); in test_SimpleEntry_getKey() 90 assertNull(entry.getKey()); in test_SimpleEntry_setValue() 106 assertEquals((e.getKey() == null ? 0 : e.getKey().hashCode()) in test_SimpleEntry_hashCode() 113 assertEquals(e.getKey() + "=" + e.getValue(), e.toString()); in test_SimpleEntry_toString()
|
D | SimpleImmutableEntryTest.java | 37 public Object getKey() { in getKey() method in SimpleImmutableEntryTest.NullEntry 55 assertEquals(1, testEntry.getKey()); in test_SimpleImmutableEntry_Constructor_LEntry() 60 assertNull(testEntry.getKey()); in test_SimpleImmutableEntry_Constructor_LEntry() 73 assertEquals(1, entry.getKey()); in test_SimpleImmutableEntry_getKey() 75 assertNull(entry.getKey()); in test_SimpleImmutableEntry_getKey() 114 assertEquals((e.getKey() == null ? 0 : e.getKey().hashCode()) in test_SimpleImmutableEntry_hashCode() 121 assertEquals(e.getKey() + "=" + e.getValue(), e.toString()); in test_SimpleImmutableEntry_toString()
|
D | LinkedHashMapTest.java | 186 assertEquals("KEY", newest.getKey()); in test_putPresent() 233 .getKey()) in test_entrySet() 249 assertEquals("jumbo", s1.iterator().next().getKey()); in entrySetRemoveHelper() 417 assertEquals("b", iterator.next().getKey()); in test_clone_ordered() 418 assertEquals("c", iterator.next().getKey()); in test_clone_ordered() 419 assertEquals("a", iterator.next().getKey()); in test_clone_ordered() 422 assertEquals("a", iterator.next().getKey()); in test_clone_ordered() 423 assertEquals("b", iterator.next().getKey()); in test_clone_ordered() 424 assertEquals("c", iterator.next().getKey()); in test_clone_ordered() 535 Integer jj = (Integer) m.getKey(); in test_ordered_entrySet() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | AbstractMap.java | 152 if (e.getKey()==null) in containsKey() 158 if (key.equals(e.getKey())) in containsKey() 184 if (e.getKey()==null) in get() 190 if (key.equals(e.getKey())) in get() 244 if (e.getKey()==null) in remove() 250 if (key.equals(e.getKey())) in remove() 285 put(e.getKey(), e.getValue()); in putAll() 363 return i.next().getKey(); in keySet() 490 K key = e.getKey(); in equals() 553 K key = e.getKey(); in toString() [all …]
|
D | ReverseOrderSortedMapView.java | 270 public K getKey() { return key; } 276 && Objects.equals(key, e.getKey()) 298 K key = e.getKey(); 350 if (! aboveHead(e.getKey())) 353 if (! belowTail(e.getKey())) { 369 prevKey = e.getKey(); 436 return this.entryIterator().next().getKey(); 446 return last.getKey();
|
D | Map.java | 436 K getKey(); in getKey() method 524 (c1, c2) -> c1.getKey().compareTo(c2.getKey()); in comparingByKey() 560 (c1, c2) -> cmp.compare(c1.getKey(), c2.getKey()); in comparingByKey() 609 return Map.entry(e.getKey(), e.getValue()); in copyOf() 707 k = entry.getKey(); in forEach() 762 k = entry.getKey(); in replaceAll() 1658 return new ImmutableCollections.Map1<>(entries[0].getKey(), in ofEntries() 1665 kva[a++] = entry.getKey(); in ofEntries()
|
D | KeyValueHolder.java | 71 public K getKey() { in getKey() method in KeyValueHolder 105 && key.equals(e.getKey()) in equals()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | PreferenceChangeEventTest.java | 42 assertEquals("key", event.getKey()); in testConstructorNullValue() 48 assertEquals("", event.getKey()); in testConstructorNullValue() 54 assertNull(event.getKey()); in testConstructorNullValue() 60 assertNull(event.getKey()); in testConstructorNullValue() 69 assertEquals("key", event.getKey()); in testConstructor()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LinkedHashMapTest.java | 55 assertEquals("key1", newest.getKey()); in test_getOrDefault() 76 assertEquals("key2", newest.getKey()); in test_putIfAbsent() 84 assertEquals("key1", newest.getKey()); in test_putIfAbsent() 108 assertEquals("key1", newest.getKey()); in test_replace$K$V$V() 117 assertEquals("key1", newest.getKey()); in test_replace$K$V$V() 135 assertEquals("key1", newest.getKey()); in test_replace$K$V() 153 assertEquals("key1", newest.getKey()); in test_computeIfAbsent() 162 assertEquals("key4", newest.getKey()); in test_computeIfAbsent() 179 assertEquals("key1", newest.getKey()); in test_computeIfPresent() 196 assertEquals("key1", newest.getKey()); in test_compute() [all …]
|
/libcore/ojluni/src/test/java/util/EnumMap/ |
D | ToArray.java | 54 Assert.assertEquals(x2[0].getKey(), Country.FRENCH); in testToArray() 55 Assert.assertEquals(x2[1].getKey(), Country.POLISH); in testToArray() 62 Assert.assertEquals(y2[0].getKey(), Country.FRENCH); in testToArray() 63 Assert.assertEquals(y2[1].getKey(), Country.POLISH); in testToArray()
|
/libcore/ojluni/src/main/java/jdk/internal/util/ |
D | NullableKeyValueHolder.java | 94 key = entry.getKey(); in NullableKeyValueHolder() 104 public K getKey() { in getKey() method in NullableKeyValueHolder 137 && Objects.equals(key, e.getKey()) in equals()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 113 return obj2.getKey().length() - obj1.getKey().length(); // longest to shortest 291 list.add(createEntry(entry.getKey(), (long)era)); in getTextIterator() 296 list.add(createEntry(entry.getKey(), (long)(entry.getValue() + 1))); in getTextIterator() 301 list.add(createEntry(entry.getKey(), (long)toWeekDay(entry.getValue()))); in getTextIterator() 306 list.add(createEntry(entry.getKey(), (long)entry.getValue())); in getTextIterator() 345 map.put((long) entry.getValue(), entry.getKey()); in createStore() 377 map.put((long)(entry.getValue() + 1), entry.getKey()); in createStore() 422 map.put((long)toWeekDay(entry.getValue()), entry.getKey()); in createStore() 456 map.put((long) entry.getValue(), entry.getKey()); in createStore() 587 … if (reverse.put(entry.getValue(), createEntry(entry.getValue(), entry.getKey())) != null) { in LocaleStore() [all …]
|
/libcore/ojluni/src/test/java/util/Map/ |
D | ToArray.java | 104 return o1.getKey().compareTo(o2.getKey()); in testMap() 108 …Assert.assertTrue( entries[each].getKey() == KEYS[each] && entries[each].getValue() == VALUES[each… in testMap()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest2Test.java | 95 MessageDigest d1 = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_clone() 257 MessageDigest digest = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_digest$B() 270 MessageDigest digest = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_digest$BII() 302 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getAlgorithm() 314 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getDigestLength() 345 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getInstanceLjava_lang_StringLjava_lang_String() 390 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getInstanceLjava_lang_StringLjava_security_Provider() 420 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getProvider()
|