Home
last modified time | relevance | path

Searched refs:getKey (Results 1 – 25 of 120) sorted by relevance

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSimpleEntryTest.java36 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()
DRefSortedMap.java51 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 …]
DSimpleImmutableEntryTest.java37 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()
DLinkedHashMapTest.java186 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/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java211 (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 …]
DConcurrentSkipListSubMapTest.java254 (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 …]
DEntryTest.java36 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()
DConcurrentSkipListMapTest.java295 (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 …]
DTreeMapTest.java278 (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 …]
/libcore/ojluni/src/main/java/java/util/
DAbstractMap.java148 if (e.getKey()==null) in containsKey()
154 if (key.equals(e.getKey())) in containsKey()
180 if (e.getKey()==null) in get()
186 if (key.equals(e.getKey())) in get()
240 if (e.getKey()==null) in remove()
246 if (key.equals(e.getKey())) in remove()
281 put(e.getKey(), e.getValue()); in putAll()
359 return i.next().getKey(); in keySet()
489 K key = e.getKey(); in equals()
555 K key = e.getKey(); in toString()
[all …]
DMap.java384 K getKey(); in getKey() method
472 (c1, c2) -> c1.getKey().compareTo(c2.getKey()); in comparingByKey()
508 (c1, c2) -> cmp.compare(c1.getKey(), c2.getKey()); in comparingByKey()
624 k = entry.getKey(); in forEach()
679 k = entry.getKey(); in replaceAll()
DMissingResourceException.java104 public String getKey() { in getKey() method in MissingResourceException
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DPreferenceChangeEventTest.java42 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/
DLinkedHashMapTest.java55 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 …]
DOldMapEntryTest.java33 assertTrue(hm.containsKey(me.getKey())); in testGetKey()
36 me.getKey(); in testGetKey()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeTextProvider.java112 return obj2.getKey().length() - obj1.getKey().length(); // longest to shortest
287 list.add(createEntry(entry.getKey(), (long)era)); in getTextIterator()
292 list.add(createEntry(entry.getKey(), (long)(entry.getValue() + 1))); in getTextIterator()
297 list.add(createEntry(entry.getKey(), (long)toWeekDay(entry.getValue()))); in getTextIterator()
302 list.add(createEntry(entry.getKey(), (long)entry.getValue())); in getTextIterator()
341 map.put((long) entry.getValue(), entry.getKey()); in createStore()
358 map.put((long) (entry.getValue() + 1), entry.getKey()); in createStore()
388 map.put((long)toWeekDay(entry.getValue()), entry.getKey()); in createStore()
422 map.put((long) entry.getValue(), entry.getKey()); in createStore()
545 … if (reverse.put(entry.getValue(), createEntry(entry.getValue(), entry.getKey())) != null) { in LocaleStore()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java294 K key = entry.getKey(); in emptyQueue()
377 + lruEntry.getKey() + " | " + lruEntry.getValue()); in put()
418 + lruEntry.getKey() + " | " + lruEntry.getValue()); in setCapacity()
453 kvmap.put(entry.getKey(), entry.getValue()); in getCachedEntries()
474 K getKey(); in getKey() method
492 public K getKey() { in getKey() method in MemoryCache.HardCacheEntry
529 public K getKey() { in getKey() method in MemoryCache.SoftCacheEntry
/libcore/luni/src/main/java/libcore/util/
DDebugInfo.java67 if (key.equals(entry.getKey())) { in getDebugEntry()
91 public String getKey() { in getKey() method in DebugInfo.DebugEntry
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DMemoryCache.java108 public K getKey(); in getKey() method
122 public K getKey() { in getKey() method in MemoryCache.HardCacheEntry
155 public K getKey() { in getKey() method in MemoryCache.SoftCacheEntry
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java85 MessageDigest d1 = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_clone()
247 MessageDigest digest = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_digest$B()
260 MessageDigest digest = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_digest$BII()
292 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getAlgorithm()
304 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getDigestLength()
335 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
380 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getInstanceLjava_lang_StringLjava_security_Provider()
410 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getProvider()
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java273 count += entry.getKey().getBytes().length; in toEnvironmentBlock()
281 byte[] key = entry.getKey ().getBytes(); in toEnvironmentBlock()
307 public String getKey() {return e.getKey().toString();} in getKey() method in ProcessEnvironment.StringEntry
312 public String toString() {return getKey() + "=" + getValue();} in toString()
342 public Variable getKey() { in vvEntry()
343 return Variable.valueOfQueryOnly(((Map.Entry)o).getKey()); in vvEntry()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleObjectCache.java95 map.remove(entry.getKey()); in cleanStaleEntries()
113 K getKey() { in getKey() method in LocaleObjectCache.CacheEntry
DExtension.java53 public char getKey() { in getKey() method in Extension
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDESedeKeySpecTest.java114 byte[] res = ks.getKey(); in testGetKey()
129 res = ks.getKey(); in testGetKey()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DReduceByOpTest.java56 Boolean key = entry.getKey(); in testOps()
66 assertEquals((int) entry.getValue(), mgResult.get(entry.getKey()).size()); in testOps()

12345