Home
last modified time | relevance | path

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

/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/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 …]
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/
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()
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 …]
/libcore/ojluni/src/main/java/java/util/
DSortedMap.java154 SortedMap<K,V> subMap(K fromKey, K toKey); in subMap() method
DTreeSet.java325 return new TreeSet<>(m.subMap(fromElement, fromInclusive, in subSet()
DCollections.java1851 public SortedMap<K,V> subMap(K fromKey, K toKey)
1852 { return new UnmodifiableSortedMap<>(sm.subMap(fromKey, toKey)); }
1992 … public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
1994 nm.subMap(fromKey, fromInclusive, toKey, toInclusive));
2818 public SortedMap<K,V> subMap(K fromKey, K toKey) {
2821 sm.subMap(fromKey, toKey), mutex);
2964 public SortedMap<K,V> subMap(K fromKey, K toKey) {
2967 nm.subMap(fromKey, true, toKey, false), mutex);
2981 … public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) {
2984 nm.subMap(fromKey, fromInclusive, toKey, toInclusive), mutex);
[all …]
DTreeMap.java912 public NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, in subMap() method in TreeMap
954 public SortedMap<K,V> subMap(K fromKey, K toKey) { in subMap() method in TreeMap
955 return subMap(fromKey, true, toKey, false); in subMap()
1162 return new KeySet<>(m.subMap(fromElement, fromInclusive, in subSet()
1617 public final SortedMap<K,V> subMap(K fromKey, K toKey) { in subMap() method in TreeMap.NavigableSubMap
1618 return subMap(fromKey, true, toKey, false); in subMap()
1868 public NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, in subMap() method in TreeMap.AscendingSubMap
1961 public NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, in subMap() method in TreeMap.DescendingSubMap
2058 public SortedMap<K,V> subMap(K fromKey, K toKey) { throw new InternalError(); } in subMap() method in TreeMap.SubMap
/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/src/main/java/java/util/concurrent/
DConcurrentSkipListSet.java419 (m.subMap(fromElement, fromInclusive, in subSet()
DConcurrentSkipListMap.java2050 public ConcurrentNavigableMap<K,V> subMap(K fromKey, in subMap() method in ConcurrentSkipListMap
2091 public ConcurrentNavigableMap<K,V> subMap(K fromKey, K toKey) { in subMap() method in ConcurrentSkipListMap
2092 return subMap(fromKey, true, toKey, false); in subMap()
2411 return new KeySet<>(m.subMap(fromElement, fromInclusive, in subSet()
2955 public SubMap<K,V> subMap(K fromKey, boolean fromInclusive, in subMap() method in ConcurrentSkipListMap.SubMap
2974 public SubMap<K,V> subMap(K fromKey, K toKey) { in subMap() method in ConcurrentSkipListMap.SubMap
2975 return subMap(fromKey, true, toKey, false); in subMap()
/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(
DConcurrentSkipListSubMapTest.java49 return map.subMap(one, true, seven, false); in map5()
624 SortedMap sm = map.subMap(two, four);
655 SortedMap sm = map.subMap(two, three);
1298 SortedMap sm = map.subMap(m2, m4);
1329 SortedMap sm = map.subMap(m2, m3);
DConcurrentSkipListMapTest.java827 NavigableMap sm = map.subMap(two, true, four, false);
865 NavigableMap sm = map.subMap(two, true, three, false);
999 bashSubMap(map.subMap(0, true, mapSize, false),
1142 NavigableMap<Integer,Integer> sm = map.subMap(
1151 NavigableMap<Integer,Integer> sm = map.subMap(
/libcore/ojluni/src/test/java/util/concurrent/tck/
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(
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);
DConcurrentSkipListMapTest.java850 NavigableMap sm = map.subMap(two, true, four, false);
888 NavigableMap sm = map.subMap(two, true, three, false);
1022 bashSubMap(map.subMap(0, true, mapSize, false),
1165 NavigableMap<Integer,Integer> sm = map.subMap(
1174 NavigableMap<Integer,Integer> sm = map.subMap(
DConcurrentSkipListSubMapTest.java72 return map.subMap(one, true, seven, false); in map5()
647 SortedMap sm = map.subMap(two, four);
678 SortedMap sm = map.subMap(two, three);
1321 SortedMap sm = map.subMap(m2, m4);
1352 SortedMap sm = map.subMap(m2, m3);