Home
last modified time | relevance | path

Searched refs:subMap (Results 1 – 25 of 37) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DConcurrentSkipListMapTest.java152 ConcurrentNavigableMap subMap = map.subMap("B", "D"); in testSubMap() local
153 assertEquals(2, subMap.size()); in testSubMap()
154 assertFalse(subMap.containsKey("A")); in testSubMap()
155 assertTrue(subMap.containsKey("B")); in testSubMap()
156 assertTrue(subMap.containsKey("C")); in testSubMap()
157 assertFalse(subMap.containsKey("D")); in testSubMap()
158 assertFalse(subMap.containsKey("E")); in testSubMap()
159 assertFalse(subMap.containsKey("F")); in testSubMap()
165 ConcurrentNavigableMap subMap = map.subMap("A", "A"); in testSubMapEmpty() local
166 assertTrue(subMap.isEmpty()); in testSubMapEmpty()
[all …]
/libcore/ojluni/src/test/java/util/Collections/
DEmptyNavigableMap.java210 SortedMap ss = navigableMap.subMap(null, BigInteger.TEN); in testSubMap()
216 SortedMap ss = navigableMap.subMap(BigInteger.ZERO, null); in testSubMap()
222 SortedMap ss = navigableMap.subMap(null, null); in testSubMap()
231 SortedMap ss = navigableMap.subMap(obj1, BigInteger.TEN); in testSubMap()
237 SortedMap ss = navigableMap.subMap(BigInteger.ZERO, obj2); in testSubMap()
243 SortedMap ss = navigableMap.subMap(obj1, obj2); in testSubMap()
248 navigableMap.subMap(BigInteger.ZERO, false, BigInteger.ZERO, false); in testSubMap()
249 navigableMap.subMap(BigInteger.ZERO, false, BigInteger.ZERO, true); in testSubMap()
250 navigableMap.subMap(BigInteger.ZERO, true, BigInteger.ZERO, false); in testSubMap()
251 navigableMap.subMap(BigInteger.ZERO, true, BigInteger.ZERO, true); in testSubMap()
[all …]
DSyncSubMutexes.java94 assertSame(getSyncMapMutex(instance.subMap("Charlie", "Echo")), getSyncMapMutex(instance)); in testSortedMaps()
108 …assertSame(getSyncMapMutex(instance.subMap("Charlie", true, "Echo", true)), getSyncMapMutex(instan… in testNavigableMaps()
109 …assertSame(getSyncMapMutex(instance.subMap("Charlie", true, "Echo", true)), getSyncMapMutex(instan… in testNavigableMaps()
230 …new Object[] {Collections.synchronizedSortedMap(new TreeMap<>(BASE_MAP)).subMap("Bravo", "Foxtrot"… in makeSortedMaps()
245 … Object[] {Collections.synchronizedNavigableMap(new TreeMap<>(BASE_MAP)).subMap("Bravo", "Foxtrot"… in makeNavigableMaps()
246 … Object[] {Collections.synchronizedNavigableMap(new TreeMap<>(BASE_MAP)).subMap("Bravo", true, "Fo… in makeNavigableMaps()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java429 assertEquals(objArray[objArray.length - 2].toString(), tm.subMap("99", in test_lastKey()
447 sm = sm.subMap(firstKey, lastKey); in test_lastKey_after_subMap()
506 assertEquals("Returned incorrect size", 111, tm.subMap("500", "600") in test_size()
509 tm.subMap("null", "600"); in test_size()
514 assertEquals("Returned incorrect size", 1000, tm.subMap("", "null") in test_size()
524 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109] in test_subMapLjava_lang_ObjectLjava_lang_Object() local
526 assertEquals("subMap is of incorrect size", 9, subMap.size()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
528 assertTrue("SubMap contains incorrect elements", subMap.get( in test_subMapLjava_lang_ObjectLjava_lang_Object()
533 tm.subMap(objArray[9].toString(), objArray[1].toString()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
544 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null, in test_subMapLjava_lang_ObjectLjava_lang_Object()
[all …]
DTreeMapExtendTest.java317 SortedMap subMap = tm_null.subMap("0", "2"); in test_SubMap_containsValue() local
318 assertTrue(subMap.containsValue(null)); in test_SubMap_containsValue()
320 subMap.remove("1"); in test_SubMap_containsValue()
321 assertFalse(subMap.containsValue(null)); in test_SubMap_containsValue()
356 subMap_default.subMap(firstKey1, firstKey1).firstKey(); in test_SubMap_firstKey()
363 subMap_startExcluded_endExcluded.subMap(firstKey2, firstKey2) in test_SubMap_firstKey()
371 subMap_startExcluded_endIncluded.subMap(firstKey2, firstKey2) in test_SubMap_firstKey()
379 subMap_startIncluded_endExcluded.subMap(firstKey1, firstKey1) in test_SubMap_firstKey()
387 subMap_startIncluded_endIncluded.subMap(firstKey1, firstKey1) in test_SubMap_firstKey()
406 subMap_default_comparator.subMap(firstKey1, firstKey1).firstKey(); in test_SubMap_firstKey()
[all …]
DSortedMapTestBase.java215 checkSubMap(ref.subMap(key0, key1), map.subMap(key0, key1)); in testSubMap()
220 map.subMap(0, 100); in testSubMap()
222 map.subMap(100, 0); in testSubMap()
DRefSortedMap.java211 public SortedMap<K, V> subMap(K startKey, K endKey) {
290 public SortedMap<K, V> subMap(K startKey, K endKey) {
/libcore/luni/src/test/java/libcore/java/util/
DTreeMapTest.java75 NavigableMap<String, String> subMap = map.subMap("A", true, "C", true); in testSubMapEntrySetSetValue() local
77 Iterator<Entry<String, String>> iterator = subMap.entrySet().iterator(); in testSubMapEntrySetSetValue()
81 assertEquals("x", subMap.get("A")); in testSubMapEntrySetSetValue()
88 assertEquals("y", subMap.get("B")); in testSubMapEntrySetSetValue()
91 assertEquals("z", subMap.get("C")); in testSubMapEntrySetSetValue()
117 assertAllEntryMethodsReturnImmutableEntries(map.subMap("A", true, "C", true)); in testExceptionsOnSubMapSetValue()
216 map.subMap("a", "z").put(null, "b"); in testNullsWithNaturalOrder()
270 Map<Object, Object> map = new TreeMap<Object, Object>().subMap("a", "z"); in testClassCastExceptionsOnBounds()
350 SortedMap<String, String> subMap = map.subMap("a", "c"); in testSubMapSerialization() local
351 new SerializationTester<SortedMap<String, String>>(subMap, s) { in testSubMapSerialization() argument
[all …]
DOldTreeMapTest.java396 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109] in test_subMapLjava_lang_ObjectLjava_lang_Object() local
398 assertEquals("subMap is of incorrect size", 9, subMap.size()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
400 assertTrue("SubMap contains incorrect elements", subMap.get( in test_subMapLjava_lang_ObjectLjava_lang_Object()
405 tm.subMap(objArray[9].toString(), objArray[1].toString()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
416 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null, in test_subMapLjava_lang_ObjectLjava_lang_Object()
426 SortedMap<String, String> sub = map.subMap("1", "3"); in test_subMapLjava_lang_ObjectLjava_lang_Object()
430 tm.subMap(this, this); in test_subMapLjava_lang_ObjectLjava_lang_Object()
437 tm.subMap(objArray[9].toString(), null); in test_subMapLjava_lang_ObjectLjava_lang_Object()
444 tm.subMap(null, objArray[9].toString()); in test_subMapLjava_lang_ObjectLjava_lang_Object()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentNavigableMap.java62 ConcurrentNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, in subMap() method
84 ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey); in subMap() method
/libcore/ojluni/src/main/java/java/util/
DNavigableMap.java339 NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, in subMap() method
409 SortedMap<K,V> subMap(K fromKey, K toKey); in subMap() method
DSortedMap.java154 SortedMap<K,V> subMap(K fromKey, K toKey); in subMap() method
DReverseOrderSortedMapView.java175 public SortedMap<K, V> subMap(K fromKey, K toKey) {
449 public SortedMap<K, V> subMap(K from, K to) {
/libcore/ojluni/src/test/java/util/SequencedCollection/
DSimpleSortedMap.java129 public SortedMap<K,V> subMap(K fromKey, K toKey) { in subMap() method in SimpleSortedMap
130 return map.subMap(fromKey, toKey); in subMap()
/libcore/ojluni/annotations/flagged_api/java/util/
DNavigableMap.annotated.java72 public java.util.NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toIncl… in subMap() method
78 public java.util.SortedMap<K,V> subMap(K fromKey, K toKey); in subMap() method
DSortedMap.annotated.java34 public java.util.SortedMap<K,V> subMap(K fromKey, K toKey); in subMap() method
DTreeMap.annotated.java117 public java.util.NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toIncl… in subMap() method in TreeMap
123 public java.util.SortedMap<K,V> subMap(K fromKey, K toKey) { throw new RuntimeException("Stub!"); } in subMap() method in TreeMap
/libcore/ojluni/annotations/sdk/nullability/java/util/
DNavigableMap.annotated.java73 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> subMap(@libcore.util.Null… in subMap() method
79 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> subMap(@libcore.util.Null… in subMap() method
DSortedMap.annotated.java35 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> subMap(@libcore.util.Null… in subMap() method
DTreeMap.annotated.java102 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> subMap(@libcore.util.Null… in subMap() method in TreeMap
108 …ap<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> subMap(@libcore.util.Null… in subMap() method in TreeMap
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DConcurrentSkipListMap.annotated.java112 public java.util.concurrent.ConcurrentNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K … in subMap() method in ConcurrentSkipListMap
118 public java.util.concurrent.ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey) { throw new Runt… in subMap() method in ConcurrentSkipListMap
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSubMapTest.java48 return map.subMap(one, true, seven, false); in map5()
459 SortedMap sm = map.subMap(two, four);
490 SortedMap sm = map.subMap(two, three);
986 SortedMap sm = map.subMap(m2, m4);
1017 SortedMap sm = map.subMap(m2, m3);
DTreeMapTest.java632 NavigableMap sm = map.subMap(two, true, four, false);
670 NavigableMap sm = map.subMap(two, true, three, false);
804 bashSubMap(map.subMap(0, true, mapSize, false),
947 NavigableMap<Integer,Integer> sm = map.subMap(
956 NavigableMap<Integer,Integer> sm = map.subMap(
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTreeSubMapTest.java71 return map.subMap(one, true, seven, false); in map5()
482 SortedMap sm = map.subMap(two, four);
513 SortedMap sm = map.subMap(two, three);
1009 SortedMap sm = map.subMap(m2, m4);
1040 SortedMap sm = map.subMap(m2, m3);
DTreeMapTest.java655 NavigableMap sm = map.subMap(two, true, four, false);
693 NavigableMap sm = map.subMap(two, true, three, false);
827 bashSubMap(map.subMap(0, true, mapSize, false),
970 NavigableMap<Integer,Integer> sm = map.subMap(
979 NavigableMap<Integer,Integer> sm = map.subMap(

12