Home
last modified time | relevance | path

Searched refs:firstKey (Results 1 – 22 of 22) 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()
156 .firstKey(); in testRemove0()
188 assertEquals(ref.firstKey(), map.firstKey()); in testFirstKey()
229 int firstKey = ref.firstKey(); in testSubMap() local
234 assertEquals(ref.get(firstKey), map.get(firstKey)); in testSubMap()
298 assertEquals(ref.firstKey(), map.firstKey()); in checkSubMap()
305 map.firstKey(); in checkSubMap()
DRefSortedMap.java115 bsearch(SubMap.this.firstKey()) - 1 : in entrySet()
154 int firstIdx = bsearch(SubMap.this.firstKey()); in entrySet()
170 public K firstKey() {
172 K res = RefSortedMap.this.firstKey();
271 return tailMap(firstKey()).entrySet();
274 public K firstKey() {
283 return tailMap(firstKey()).keySet();
299 return tailMap(firstKey()).values();
DTreeMapTest.java116 reversedTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_Comparator()
148 anotherTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_SortedMap()
212 reversedTreeMap.firstKey().equals(new Integer(2).toString())); in test_comparator()
261 assertEquals("Returned incorrect first key", "0", tm.firstKey()); in test_firstKey()
362 sub.firstKey(); in test_headMapLjava_lang_Object()
390 sub.firstKey(); in test_headMapLjava_lang_Object()
439 String firstKey = (String) sm.firstKey(); in test_lastKey_after_subMap() local
447 sm = sm.subMap(firstKey, lastKey); in test_lastKey_after_subMap()
639 sub.firstKey(); in test_tailMapLjava_lang_Object()
667 sub.firstKey(); in test_tailMapLjava_lang_Object()
[all …]
DTreeMapExtendTest.java84 treeMap.firstKey(); in test_TreeMap_Constructor_Default()
135 assertEquals(tm.firstKey(), treeMap.firstKey()); in test_TreeMap_Constructor_Map()
156 assertEquals(subMap_default.firstKey(), treeMap.firstKey()); in test_TreeMap_Constructor_SortedMap()
349 assertEquals(firstKey1, subMap_default.firstKey()); in test_SubMap_firstKey()
350 assertEquals(firstKey2, subMap_startExcluded_endExcluded.firstKey()); in test_SubMap_firstKey()
351 assertEquals(firstKey2, subMap_startExcluded_endIncluded.firstKey()); in test_SubMap_firstKey()
352 assertEquals(firstKey1, subMap_startIncluded_endExcluded.firstKey()); in test_SubMap_firstKey()
353 assertEquals(firstKey1, subMap_startIncluded_endIncluded.firstKey()); in test_SubMap_firstKey()
356 subMap_default.subMap(firstKey1, firstKey1).firstKey(); in test_SubMap_firstKey()
364 .firstKey(); in test_SubMap_firstKey()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidTreeMapTest.java66 if (SPEW) System.out.println("tm.firstKey() = " + tm.firstKey()); in doTest()
70 assertEquals(minVal, tm.firstKey().intValue()); in doTest()
DOldTreeMapTest.java99 reversedTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_Comparator()
143 anotherTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_SortedMap()
178 assertEquals("Returned incorrect first key", "0", tm.firstKey()); in test_firstKey()
181 tm.firstKey(); in test_firstKey()
DCollectionsTest.java884 assertEquals(ceiling, floor == null ? map.firstKey() : map.higherKey(floor)); in check_unmodifiableNavigableMap_defaultMethods()
/libcore/ojluni/src/main/java/java/util/
DSortedMap.java216 K firstKey(); in firstKey() method
DTreeSet.java394 return m.firstKey(); in first()
DCollections.java1857 public K firstKey() { return sm.firstKey(); }
2835 public K firstKey() {
2836 synchronized (mutex) {return sm.firstKey();}
4029 public K firstKey() { return sm.firstKey(); }
4103 public K firstKey() { return nm.firstKey(); }
DTreeMap.java290 public K firstKey() { in firstKey() method in TreeMap
1144 public E first() { return m.firstKey(); } in first()
1566 public final K firstKey() { in firstKey() method in TreeMap.NavigableSubMap
2057 public K firstKey() { throw new InternalError(); } in firstKey() method in TreeMap.SubMap
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java145 assertEquals(one, map.firstKey()); in testFirstKey()
460 assertEquals(two, sm.firstKey());
481 assertEquals(three, sm.firstKey());
492 assertEquals(two, sm.firstKey());
538 assertEquals(four, map.firstKey());
581 assertEquals(four, ssm.firstKey());
655 assertEquals(m1, map.firstKey());
987 assertEquals(m2, sm.firstKey());
1008 assertEquals(m3, sm.firstKey());
1019 assertEquals(m2, sm.firstKey());
[all …]
DConcurrentSkipListSubMapTest.java146 assertEquals(one, map.firstKey()); in testFirstKey()
625 assertEquals(two, sm.firstKey());
646 assertEquals(three, sm.firstKey());
657 assertEquals(two, sm.firstKey());
703 assertEquals(four, map.firstKey());
746 assertEquals(four, ssm.firstKey());
820 assertEquals(m1, map.firstKey());
1299 assertEquals(m2, sm.firstKey());
1320 assertEquals(m3, sm.firstKey());
1331 assertEquals(m2, sm.firstKey());
[all …]
DTreeMapTest.java126 assertEquals(one, map.firstKey()); in testFirstKey()
633 assertEquals(two, sm.firstKey());
661 assertEquals(three, sm.firstKey());
672 assertEquals(two, sm.firstKey());
723 assertEquals(four, map.firstKey());
776 assertEquals(four, ssm.firstKey());
1062 assertEq(map.firstKey(), rs.first());
1068 map.firstKey();
DConcurrentSkipListMapTest.java127 assertEquals(one, map.firstKey()); in testFirstKey()
828 assertEquals(two, sm.firstKey());
856 assertEquals(three, sm.firstKey());
867 assertEquals(two, sm.firstKey());
918 assertEquals(four, map.firstKey());
971 assertEquals(four, ssm.firstKey());
1257 assertEq(map.firstKey(), rs.first());
1263 map.firstKey();
/libcore/ojluni/src/main/java/java/lang/
DThreadLocal.java365 ThreadLocalMap(ThreadLocal<?> firstKey, Object firstValue) { in ThreadLocalMap() argument
367 int i = firstKey.threadLocalHashCode & (INITIAL_CAPACITY - 1); in ThreadLocalMap()
368 table[i] = new Entry(firstKey, firstValue); in ThreadLocalMap()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DSortedMap.annotated.java41 @libcore.util.NullFromTypeParam public K firstKey(); in firstKey() method
DTreeMap.annotated.java52 @libcore.util.NullFromTypeParam public K firstKey() { throw new RuntimeException("Stub!"); } in firstKey() method in TreeMap
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThreadLocal.java115 ThreadLocalMap(java.lang.ThreadLocal<?> firstKey, java.lang.Object firstValue) { in ThreadLocalMap() argument
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListSet.java398 return m.firstKey(); in first()
DConcurrentSkipListMap.java2028 public K firstKey() { in firstKey() method in ConcurrentSkipListMap
2373 public K first() { return m.firstKey(); } in first()
3025 public K firstKey() { in firstKey() method in ConcurrentSkipListMap.SubMap
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java1046 public K firstKey() { in firstKey() method in Collections.CheckedNavigableMap
1325 public K firstKey() { in firstKey() method in Collections.CheckedSortedMap
2800 public K firstKey() { in firstKey() method in Collections.SynchronizedSortedMap
3593 public K firstKey() { in firstKey() method in Collections.UnmodifiableSortedMap