Home
last modified time | relevance | path

Searched refs:lastKey (Results 1 – 19 of 19) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSortedMapTestBase.java155 int key = ref.tailMap((ref.firstKey() + ref.lastKey()) / 2) in testRemove0()
201 assertEquals(ref.lastKey(), map.lastKey()); in testLastKey()
299 assertEquals(ref.lastKey(), map.lastKey()); in checkSubMap()
311 map.lastKey(); in checkSubMap()
365 map2.remove(map2.lastKey()); in testClone()
DRefSortedMap.java153 int lastIdx = bsearch(SubMap.this.lastKey()); in entrySet()
195 public K lastKey() {
197 K res = RefSortedMap.this.lastKey();
286 public K lastKey() {
DTreeMapTest.java118 reversedTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_Comparator()
150 anotherTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_SortedMap()
214 reversedTreeMap.lastKey().equals(new Integer(1).toString())); in test_comparator()
376 sub.lastKey(); in test_headMapLjava_lang_Object()
396 sub.lastKey(); in test_headMapLjava_lang_Object()
422 assertTrue("Returned incorrect last key", tm.lastKey().equals( in test_lastKey()
424 assertNotSame(objArray[objArray.length - 1].toString(), tm.lastKey()); in test_lastKey()
426 .headMap("999").lastKey()); in test_lastKey()
428 .tailMap("123").lastKey()); in test_lastKey()
430 "999").lastKey()); in test_lastKey()
[all …]
DTreeMapExtendTest.java92 treeMap.lastKey(); in test_TreeMap_Constructor_Default()
137 assertEquals(tm.lastKey(), treeMap.lastKey()); in test_TreeMap_Constructor_Map()
157 assertEquals(subMap_default.lastKey(), treeMap.lastKey()); in test_TreeMap_Constructor_SortedMap()
449 assertEquals(lastKey1, subMap_default.lastKey()); in test_SubMap_lastKey()
450 assertEquals(lastKey1, subMap_startExcluded_endExcluded.lastKey()); in test_SubMap_lastKey()
451 assertEquals(lastKey2, subMap_startExcluded_endIncluded.lastKey()); in test_SubMap_lastKey()
452 assertEquals(lastKey1, subMap_startIncluded_endExcluded.lastKey()); in test_SubMap_lastKey()
453 assertEquals(lastKey2, subMap_startIncluded_endIncluded.lastKey()); in test_SubMap_lastKey()
456 subMap_default.subMap(lastKey1, lastKey1).lastKey(); in test_SubMap_lastKey()
464 .lastKey(); in test_SubMap_lastKey()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeMapTest.java101 reversedTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_Comparator()
145 anotherTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_SortedMap()
291 assertTrue("Returned incorrect last key", tm.lastKey().equals( in test_lastKey()
295 tm.lastKey(); in test_lastKey()
425 assertEquals("3", map.lastKey()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
427 assertEquals("2", sub.lastKey()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
DOldAndroidTreeMapTest.java68 if (SPEW) System.out.println("tm.lastKey() = " + tm.lastKey()); in doTest()
71 assertEquals(maxVal, tm.lastKey().intValue()); in doTest()
DCollectionsTest.java885 assertEquals(floor, ceiling == null ? map.lastKey() : map.lowerKey(ceiling)); in check_unmodifiableNavigableMap_defaultMethods()
/libcore/ojluni/src/main/java/java/util/
DSortedMap.java224 K lastKey(); in lastKey() method
DTreeSet.java401 return m.lastKey(); in last()
DTreeMap.java297 public K lastKey() { in lastKey() method in TreeMap
1145 public E last() { return m.lastKey(); } in last()
1570 public final K lastKey() { in lastKey() method in TreeMap.NavigableSubMap
2056 public K lastKey() { throw new InternalError(); } in lastKey() method in TreeMap.SubMap
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java153 assertEquals(five, map.lastKey()); in testLastKey()
461 assertEquals(three, sm.lastKey());
482 assertEquals(three, sm.lastKey());
493 assertEquals(two, sm.lastKey());
582 assertEquals(five, ssm.lastKey());
663 assertEquals(m5, map.lastKey());
988 assertEquals(m3, sm.lastKey());
1009 assertEquals(m3, sm.lastKey());
1020 assertEquals(m2, sm.lastKey());
1109 assertEquals(m5, ssm.lastKey());
DConcurrentSkipListSubMapTest.java154 assertEquals(five, map.lastKey()); in testLastKey()
626 assertEquals(three, sm.lastKey());
647 assertEquals(three, sm.lastKey());
658 assertEquals(two, sm.lastKey());
747 assertEquals(five, ssm.lastKey());
828 assertEquals(m5, map.lastKey());
1300 assertEquals(m3, sm.lastKey());
1321 assertEquals(m3, sm.lastKey());
1332 assertEquals(m2, sm.lastKey());
1421 assertEquals(m5, ssm.lastKey());
DTreeMapTest.java134 assertEquals(five, map.lastKey()); in testLastKey()
634 assertEquals(three, sm.lastKey());
662 assertEquals(three, sm.lastKey());
673 assertEquals(two, sm.lastKey());
777 assertEquals(five, ssm.lastKey());
1063 assertEq(map.lastKey(), rs.last());
1072 map.lastKey();
DConcurrentSkipListMapTest.java135 assertEquals(five, map.lastKey()); in testLastKey()
829 assertEquals(three, sm.lastKey());
857 assertEquals(three, sm.lastKey());
868 assertEquals(two, sm.lastKey());
972 assertEquals(five, ssm.lastKey());
1258 assertEq(map.lastKey(), rs.last());
1267 map.lastKey();
/libcore/ojluni/annotations/sdk/nullability/java/util/
DSortedMap.annotated.java43 @libcore.util.NullFromTypeParam public K lastKey(); in lastKey() method
DTreeMap.annotated.java54 @libcore.util.NullFromTypeParam public K lastKey() { throw new RuntimeException("Stub!"); } in lastKey() method in TreeMap
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java1319 Range lastKey = ctxKey; in shapeContextually() local
1331 if (ctxKey != lastKey) { in shapeContextually()
1332 lastKey = ctxKey; in shapeContextually()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListSet.java405 return m.lastKey(); in last()
DConcurrentSkipListMap.java2038 public K lastKey() { in lastKey() method in ConcurrentSkipListMap
2374 public K last() { return m.lastKey(); } in last()
3029 public K lastKey() { in lastKey() method in ConcurrentSkipListMap.SubMap