Home | History | Annotate | Download | only in util

Lines Matching defs:subMap

360         assertTrue("submap should be empty", sub.isEmpty());
388 assertTrue("submap should be empty", sub.isEmpty());
429 assertEquals(objArray[objArray.length - 2].toString(), tm.subMap("99",
447 sm = sm.subMap(firstKey, lastKey);
506 assertEquals("Returned incorrect size", 111, tm.subMap("500", "600")
509 tm.subMap("null", "600");
514 assertEquals("Returned incorrect size", 1000, tm.subMap("", "null")
519 * java.util.TreeMap#subMap(java.lang.Object, java.lang.Object)
523 // java.util.TreeMap.subMap(java.lang.Object, java.lang.Object)
524 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109]
526 assertEquals("subMap is of incorrect size", 9, subMap.size());
528 assertTrue("SubMap contains incorrect elements", subMap.get(
533 tm.subMap(objArray[9].toString(), objArray[1].toString());
544 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null,
546 assertEquals("Size of subMap should be 1:", 1, subMapWithNull.size()); //$NON-NLS-1$
554 SortedMap<String, String> sub = map.subMap("1", "3"); //$NON-NLS-1$ //$NON-NLS-2$
561 t.subMap(null, new Object());
572 * java.util.TreeMap#subMap(java.lang.Object, java.lang.Object)
585 Map subMap = map.subMap("", "test");
586 assertEquals(3, subMap.size());
588 Set entrySet = subMap.entrySet();
600 Set<String> keySet = subMap.keySet();
637 assertTrue("submap should be empty", sub.isEmpty());
665 assertTrue("submap should be empty", sub.isEmpty());
748 Collection vals = myTreeMap.subMap(200, 400).values();
830 * java.util.TreeMap#subMap()
843 Map subMap = map.subMap("", "test");
844 assertEquals(3, subMap.size());
846 Set entrySet = subMap.entrySet();
858 Set<String> keySet = subMap.keySet();
1317 * java.util.TreeMap#subMap(java.lang.Object, boolean,
1322 SortedMap subMap = tm.subMap(objArray[100].toString(), true,
1324 assertEquals("subMap is of incorrect size", 10, subMap.size());
1325 subMap = tm.subMap(objArray[100].toString(), true, objArray[109]
1327 assertEquals("subMap is of incorrect size", 9, subMap.size());
1329 assertTrue("SubMap contains incorrect elements", subMap.get(
1332 subMap = tm.subMap(objArray[100].toString(), false, objArray[109]
1334 assertEquals("subMap is of incorrect size", 9, subMap.size());
1335 assertNull(subMap.get(objArray[100].toString()));
1339 tm.subMap(objArray[9].toString(), true, objArray[1].toString(),
1346 tm.subMap(objArray[9].toString(), false, objArray[1].toString(),
1353 tm.subMap(null, true, null, true);
1359 tm.subMap(null, false, objArray[100], true);
1365 tm.subMap(new LinkedList(), false, objArray[100], true);
1373 assertEquals(0, treeMapInt.subMap(new Integer(-1), true,
1378 SortedMap<Integer, String> result = treeMapInt.subMap(new Integer(-1),
1385 .subMap(new Integer(50), true, new Integer(60), true);
1402 result2 = result.subMap(new Integer(-2), new Integer(100));
1407 result2 = result.subMap(new Integer(50), new Integer(60));
1415 mapIntObj = mapIntObj.subMap(5, false, 9, true);
1417 mapIntObj = mapIntObj.subMap(5, false, 9, true);
1419 mapIntObj = mapIntObj.subMap(5, false, 6, false);
1438 SortedMap s = tm.subMap(null, "3rd");
1446 s = s.subMap("3rd", null);
1459 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null,
1463 assertEquals("Size of subMap should be 2:", 2, subMapWithNull.size()); //$NON-NLS-1$
1471 assertEquals("Size of subMap should be 3:", 3, subMapWithNull.size()); //$NON-NLS-1$
1472 subMapWithNull = treeMapWithNull.subMap(null, false, "key1", true); //$NON-NLS-1$
1473 assertEquals("Size of subMap should be 2:", 2, subMapWithNull.size()); //$NON-NLS-1$
1482 SortedMap subMap = tm.headMap(objArray[100].toString(), true);
1483 assertEquals("subMap is of incorrect size", 4, subMap.size());
1484 subMap = tm.headMap(objArray[109].toString(), true);
1485 assertEquals("subMap is of incorrect size", 13, subMap.size());
1487 assertTrue("SubMap contains incorrect elements", subMap.get(
1490 subMap = tm.headMap(objArray[100].toString(), false);
1491 assertEquals("subMap is of incorrect size", 3, subMap.size());
1492 assertNull(subMap.get(objArray[100].toString()));
1553 result.subMap(new Integer(-2), new Integer(100));
1559 result.subMap(new Integer(1), new Integer(100));
1564 result2 = result.subMap(new Integer(-2), new Integer(48));
1567 result2 = result.subMap(new Integer(40), new Integer(50));
1577 assertEquals("Size of subMap should be 1:", 1, subMapWithNull.size()); //$NON-NLS-1$
1585 assertEquals("Size of subMap should be 1:", 1, subMapWithNull.size()); //$NON-NLS-1$
1586 subMapWithNull = treeMapWithNull.subMap(null, false, "key1", true); //$NON-NLS-1$
1587 assertEquals("Size of subMap should be 2:", 2, subMapWithNull.size()); //$NON-NLS-1$
1612 SortedMap subMap = tm.tailMap(objArray[100].toString(), true);
1613 assertEquals("subMap is of incorrect size", 997, subMap.size());
1614 subMap = tm.tailMap(objArray[109].toString(), true);
1615 assertEquals("subMap is of incorrect size", 988, subMap.size());
1617 assertTrue("SubMap contains incorrect elements", subMap.get(
1620 subMap = tm.tailMap(objArray[100].toString(), false);
1621 assertEquals("subMap is of incorrect size", 996, subMap.size());
1622 assertNull(subMap.get(objArray[100].toString()));
1682 result2 = result.subMap(new Integer(-2), new Integer(100));
1687 result2 = result.subMap(new Integer(60), new Integer(70));
1697 assertEquals("Size of subMap should be 1:", 1, subMapWithNull.size()); //$NON-NLS-1$
1705 assertEquals("Size of subMap should be 5:", 5, subMapWithNull.size()); //$NON-NLS-1$
1706 subMapWithNull = treeMapWithNull.subMap(null, false, "key1", true); //$NON-NLS-1$
1707 assertEquals("Size of subMap should be 2:", 2, subMapWithNull.size()); //$NON-NLS-1$
1733 assertEquals(7, descMap.subMap(8, true, 1, false).size());
1743 NavigableMap<Integer, Object> subMapIntObj = mapIntObj.subMap(9, true,
1746 subMapIntObj = subMapIntObj.subMap(9, true, 5, false);
1748 subMapIntObj = subMapIntObj.subMap(6, false, 5, false);
1825 map.subMap(null, false, null, false);
1831 map.subMap(null, true, null, true);
1913 Map<String, String> submap = test_map.subMap("a", "z");
1915 assertFalse("Empty submap should not contain the null-valued entry",
1916 submap.entrySet().contains(entry[0]));
1930 Map m = tm.subMap("0", "1");
1956 SortedMap subMap = ((SortedMap) treeMap).subMap(firstKey, firstKey);
1957 Iterator iter = subMap.values().iterator();