/usr/share/doc/libhamcrest-java/api/org/hamcrest/Matchers.html is in libhamcrest-java-doc 1.3-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Mon May 19 11:02:41 UTC 2014 -->
<title>Matchers (Hamcrest)</title>
<meta name="date" content="2014-05-19">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Matchers (Hamcrest)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Matchers.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../org/hamcrest/MatcherAssert.html" title="class in org.hamcrest"><span class="strong">Prev Class</span></a></li>
<li><a href="../../org/hamcrest/SelfDescribing.html" title="interface in org.hamcrest"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?org/hamcrest/Matchers.html" target="_top">Frames</a></li>
<li><a href="Matchers.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.hamcrest</div>
<h2 title="Class Matchers" class="title">Class Matchers</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.hamcrest.Matchers</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">Matchers</span>
extends java.lang.Object</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../org/hamcrest/Matchers.html#Matchers()">Matchers</a></strong>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(java.lang.Iterable)">allOf</a></strong>(java.lang.Iterable<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>> matchers)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(org.hamcrest.Matcher...)">allOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... matchers)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(org.hamcrest.Matcher, org.hamcrest.Matcher)">allOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">allOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">allOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">allOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">allOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> sixth)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#any(java.lang.Class)">any</a></strong>(java.lang.Class<T> type)</code>
<div class="block">Creates a matcher that matches when the examined object is an instance of the specified <code>type</code>,
as determined by calling the <code>Class.isInstance(Object)</code> method on that type, passing the
the examined object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(java.lang.Iterable)">anyOf</a></strong>(java.lang.Iterable<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>> matchers)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(org.hamcrest.Matcher...)">anyOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... matchers)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher)">anyOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">anyOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">anyOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">anyOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">anyOf</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> sixth)</code>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anything()">anything</a></strong>()</code>
<div class="block">Creates a matcher that always matches, regardless of the examined object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#anything(java.lang.String)">anything</a></strong>(java.lang.String description)</code>
<div class="block">Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified <code>String</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/collection/IsArray.html" title="class in org.hamcrest.collection">IsArray</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#array(org.hamcrest.Matcher...)">array</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... elementMatchers)</code>
<div class="block">Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayContaining(E...)">arrayContaining</a></strong>(E... items)</code>
<div class="block">Creates a matcher for arrays that matcheswhen each item in the examined array is
logically equal to the corresponding item in the specified items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayContaining(java.util.List)">arrayContaining</a></strong>(java.util.List<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>> itemMatchers)</code>
<div class="block">Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified list of matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayContaining(org.hamcrest.Matcher...)">arrayContaining</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>... itemMatchers)</code>
<div class="block">Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayContainingInAnyOrder(java.util.Collection)">arrayContainingInAnyOrder</a></strong>(java.util.Collection<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>> itemMatchers)</code>
<div class="block">Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified collection of matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayContainingInAnyOrder(E...)">arrayContainingInAnyOrder</a></strong>(E... items)</code>
<div class="block">Creates an order agnostic matcher for arrays that matches when each item in the
examined array is logically equal to one item anywhere in the specified items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayContainingInAnyOrder(org.hamcrest.Matcher...)">arrayContainingInAnyOrder</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>... itemMatchers)</code>
<div class="block">Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayWithSize(int)">arrayWithSize</a></strong>(int size)</code>
<div class="block">Creates a matcher for arrays that matches when the <code>length</code> of the array
equals the specified <code>size</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#arrayWithSize(org.hamcrest.Matcher)">arrayWithSize</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.Integer> sizeMatcher)</code>
<div class="block">Creates a matcher for arrays that matches when the <code>length</code> of the array
satisfies the specified matcher.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <LHS> <a href="../../org/hamcrest/core/CombinableMatcher.CombinableBothMatcher.html" title="class in org.hamcrest.core">CombinableMatcher.CombinableBothMatcher</a><LHS></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#both(org.hamcrest.Matcher)">both</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super LHS> matcher)</code>
<div class="block">Creates a matcher that matches when both of the specified matchers match the examined object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.math.BigDecimal></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#closeTo(java.math.BigDecimal, java.math.BigDecimal)">closeTo</a></strong>(java.math.BigDecimal operand,
java.math.BigDecimal error)</code>
<div class="block">Creates a matcher of <code>BigDecimal</code>s that matches when an examined BigDecimal is equal
to the specified <code>operand</code>, within a range of +/- <code>error</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Double></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#closeTo(double, double)">closeTo</a></strong>(double operand,
double error)</code>
<div class="block">Creates a matcher of <code>Double</code>s that matches when an examined double is equal
to the specified <code>operand</code>, within a range of +/- <code>error</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T extends java.lang.Comparable<T>> <br><a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#comparesEqualTo(T)">comparesEqualTo</a></strong>(T value)</code>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
equal to the specified value, as reported by the <code>compareTo</code> method of the
<b>examined</b> object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#contains(E...)">contains</a></strong>(E... items)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a series of items, each logically equal to the
corresponding item in the specified items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#contains(java.util.List)">contains</a></strong>(java.util.List<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>> itemMatchers)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a series of items, each satisfying the corresponding
matcher in the specified list of matchers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#contains(org.hamcrest.Matcher...)">contains</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>... itemMatchers)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a series of items, each satisfying the corresponding
matcher in the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#contains(org.hamcrest.Matcher)">contains</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E> itemMatcher)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a single item that satisfies the specified matcher.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#containsInAnyOrder(java.util.Collection)">containsInAnyOrder</a></strong>(java.util.Collection<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>> itemMatchers)</code>
<div class="block">Creates an order agnostic matcher for <code>Iterable</code>s that matches when a single pass over
the examined <code>Iterable</code> yields a series of items, each satisfying one matcher anywhere
in the specified collection of matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#containsInAnyOrder(org.hamcrest.Matcher)">containsInAnyOrder</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E> itemMatcher)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>use contains(Matcher<? super E> itemMatcher) instead</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#containsInAnyOrder(org.hamcrest.Matcher...)">containsInAnyOrder</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... itemMatchers)</code>
<div class="block">Creates an order agnostic matcher for <code>Iterable</code>s that matches when a single pass over
the examined <code>Iterable</code> yields a series of items, each satisfying one matcher anywhere
in the specified matchers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#containsInAnyOrder(T...)">containsInAnyOrder</a></strong>(T... items)</code>
<div class="block">Creates an order agnostic matcher for <code>Iterable</code>s that matches when a single pass over
the examined <code>Iterable</code> yields a series of items, each logically equal to one item
anywhere in the specified items.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#containsString(java.lang.String)">containsString</a></strong>(java.lang.String substring)</code>
<div class="block">Creates a matcher that matches if the examined <code>String</code> contains the specified
<code>String</code> anywhere.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#describedAs(java.lang.String, org.hamcrest.Matcher, java.lang.Object...)">describedAs</a></strong>(java.lang.String description,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> matcher,
java.lang.Object... values)</code>
<div class="block">Wraps an existing matcher, overriding its description with that specified.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <LHS> <a href="../../org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html" title="class in org.hamcrest.core">CombinableMatcher.CombinableEitherMatcher</a><LHS></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#either(org.hamcrest.Matcher)">either</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super LHS> matcher)</code>
<div class="block">Creates a matcher that matches when either of the specified matchers match the examined object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#empty()">empty</a></strong>()</code>
<div class="block">Creates a matcher for <code>Collection</code>s matching examined collections whose <code>isEmpty</code>
method returns <code>true</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#emptyArray()">emptyArray</a></strong>()</code>
<div class="block">Creates a matcher for arrays that matches when the <code>length</code> of the array
is zero.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#emptyCollectionOf(java.lang.Class)">emptyCollectionOf</a></strong>(java.lang.Class<E> type)</code>
<div class="block">Creates a matcher for <code>Collection</code>s matching examined collections whose <code>isEmpty</code>
method returns <code>true</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#emptyIterable()">emptyIterable</a></strong>()</code>
<div class="block">Creates a matcher for <code>Iterable</code>s matching examined iterables that yield no items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#emptyIterableOf(java.lang.Class)">emptyIterableOf</a></strong>(java.lang.Class<E> type)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s matching examined iterables that yield no items.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#endsWith(java.lang.String)">endsWith</a></strong>(java.lang.String suffix)</code>
<div class="block">Creates a matcher that matches if the examined <code>String</code> ends with the specified
<code>String</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#equalTo(T)">equalTo</a></strong>(T operand)</code>
<div class="block">Creates a matcher that matches when the examined object is logically equal to the specified
<code>operand</code>, as determined by calling the <code>Object.equals(java.lang.Object)</code> method on
the <b>examined</b> object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#equalToIgnoringCase(java.lang.String)">equalToIgnoringCase</a></strong>(java.lang.String expectedString)</code>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string is equal to
the specified expectedString, ignoring case.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#equalToIgnoringWhiteSpace(java.lang.String)">equalToIgnoringWhiteSpace</a></strong>(java.lang.String expectedString)</code>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string is equal to
the specified expectedString, when whitespace differences are (mostly) ignored.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.EventObject></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#eventFrom(java.lang.Class, java.lang.Object)">eventFrom</a></strong>(java.lang.Class<? extends java.util.EventObject> eventClass,
java.lang.Object source)</code>
<div class="block">Creates a matcher of <code>EventObject</code> that matches any object
derived from <var>eventClass</var> announced by <var>source</var>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.EventObject></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#eventFrom(java.lang.Object)">eventFrom</a></strong>(java.lang.Object source)</code>
<div class="block">Creates a matcher of <code>EventObject</code> that matches any EventObject
announced by <var>source</var>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <U> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<U>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#everyItem(org.hamcrest.Matcher)">everyItem</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><U> itemMatcher)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that only matches when a single pass over the
examined <code>Iterable</code> yields items that are all matched by the specified
<code>itemMatcher</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T extends java.lang.Comparable<T>> <br><a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#greaterThan(T)">greaterThan</a></strong>(T value)</code>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
greater than the specified value, as reported by the <code>compareTo</code> method of the
<b>examined</b> object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T extends java.lang.Comparable<T>> <br><a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#greaterThanOrEqualTo(T)">greaterThanOrEqualTo</a></strong>(T value)</code>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
greater than or equal to the specified value, as reported by the <code>compareTo</code> method
of the <b>examined</b> object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <K,V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,? extends V>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasEntry(K, V)">hasEntry</a></strong>(K key,
V value)</code>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one entry whose key equals the specified <code>key</code> <b>and</b> whose value equals the
specified <code>value</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <K,V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,? extends V>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasEntry(org.hamcrest.Matcher, org.hamcrest.Matcher)">hasEntry</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super K> keyMatcher,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super V> valueMatcher)</code>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one entry whose key satisfies the specified <code>keyMatcher</code> <b>and</b> whose
value satisfies the specified <code>valueMatcher</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? super T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasItem(org.hamcrest.Matcher)">hasItem</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> itemMatcher)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that only matches when a single pass over the
examined <code>Iterable</code> yields at least one item that is matched by the specified
<code>itemMatcher</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? super T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasItem(T)">hasItem</a></strong>(T item)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that only matches when a single pass over the
examined <code>Iterable</code> yields at least one item that is equal to the specified
<code>item</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasItemInArray(org.hamcrest.Matcher)">hasItemInArray</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> elementMatcher)</code>
<div class="block">Creates a matcher for arrays that matches when the examined array contains at least one item
that is matched by the specified <code>elementMatcher</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T[]></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasItemInArray(T)">hasItemInArray</a></strong>(T element)</code>
<div class="block">A shortcut to the frequently used <code>hasItemInArray(equalTo(x))</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasItems(org.hamcrest.Matcher...)">hasItems</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... itemMatchers)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when consecutive passes over the
examined <code>Iterable</code> yield at least one item that is matched by the corresponding
matcher from the specified <code>itemMatchers</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<T>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasItems(T...)">hasItems</a></strong>(T... items)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when consecutive passes over the
examined <code>Iterable</code> yield at least one item that is equal to the corresponding
item from the specified <code>items</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <K> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,?>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasKey(K)">hasKey</a></strong>(K key)</code>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one key that is equal to the specified key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <K> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,?>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasKey(org.hamcrest.Matcher)">hasKey</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super K> keyMatcher)</code>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one key that satisfies the specified matcher.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasProperty(java.lang.String)">hasProperty</a></strong>(java.lang.String propertyName)</code>
<div class="block">Creates a matcher that matches when the examined object has a JavaBean property
with the specified name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasProperty(java.lang.String, org.hamcrest.Matcher)">hasProperty</a></strong>(java.lang.String propertyName,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><?> valueMatcher)</code>
<div class="block">Creates a matcher that matches when the examined object has a JavaBean property
with the specified name whose value satisfies the specified matcher.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasSize(int)">hasSize</a></strong>(int size)</code>
<div class="block">Creates a matcher for <code>Collection</code>s that matches when the <code>size()</code> method returns
a value equal to the specified <code>size</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<? extends E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasSize(org.hamcrest.Matcher)">hasSize</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.Integer> sizeMatcher)</code>
<div class="block">Creates a matcher for <code>Collection</code>s that matches when the <code>size()</code> method returns
a value that satisfies the specified matcher.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasToString(org.hamcrest.Matcher)">hasToString</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.String> toStringMatcher)</code>
<div class="block">Creates a matcher that matches any examined object whose <code>toString</code> method
returns a value that satisfies the specified matcher.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasToString(java.lang.String)">hasToString</a></strong>(java.lang.String expectedToString)</code>
<div class="block">Creates a matcher that matches any examined object whose <code>toString</code> method
returns a value equalTo the specified string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<?,? extends V>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasValue(org.hamcrest.Matcher)">hasValue</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super V> valueMatcher)</code>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one value that satisfies the specified valueMatcher.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<?,? extends V>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasValue(V)">hasValue</a></strong>(V value)</code>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one value that is equal to the specified value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasXPath(java.lang.String)">hasXPath</a></strong>(java.lang.String xPath)</code>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node contains a node
at the specified <code>xPath</code>, with any content.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasXPath(java.lang.String, org.hamcrest.Matcher)">hasXPath</a></strong>(java.lang.String xPath,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> valueMatcher)</code>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node has a value at the
specified <code>xPath</code> that satisfies the specified <code>valueMatcher</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasXPath(java.lang.String, javax.xml.namespace.NamespaceContext)">hasXPath</a></strong>(java.lang.String xPath,
javax.xml.namespace.NamespaceContext namespaceContext)</code>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node contains a node
at the specified <code>xPath</code> within the specified namespace context, with any content.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#hasXPath(java.lang.String, javax.xml.namespace.NamespaceContext, org.hamcrest.Matcher)">hasXPath</a></strong>(java.lang.String xPath,
javax.xml.namespace.NamespaceContext namespaceContext,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> valueMatcher)</code>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node has a value at the
specified <code>xPath</code>, within the specified <code>namespaceContext</code>, that satisfies
the specified <code>valueMatcher</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#instanceOf(java.lang.Class)">instanceOf</a></strong>(java.lang.Class<?> type)</code>
<div class="block">Creates a matcher that matches when the examined object is an instance of the specified <code>type</code>,
as determined by calling the <code>Class.isInstance(Object)</code> method on that type, passing the
the examined object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#is(java.lang.Class)">is</a></strong>(java.lang.Class<T> type)</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>use isA(Class<T> type) instead.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#is(org.hamcrest.Matcher)">is</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> matcher)</code>
<div class="block">Decorates another Matcher, retaining its behaviour, but allowing tests
to be slightly more expressive.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#is(T)">is</a></strong>(T value)</code>
<div class="block">A shortcut to the frequently used <code>is(equalTo(x))</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#isA(java.lang.Class)">isA</a></strong>(java.lang.Class<T> type)</code>
<div class="block">A shortcut to the frequently used <code>is(instanceOf(SomeClass.class))</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#isEmptyOrNullString()">isEmptyOrNullString</a></strong>()</code>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string is <code>null</code>, or
has zero length.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#isEmptyString()">isEmptyString</a></strong>()</code>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string has zero length.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#isIn(java.util.Collection)">isIn</a></strong>(java.util.Collection<T> collection)</code>
<div class="block">Creates a matcher that matches when the examined object is found within the
specified collection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#isIn(T[])">isIn</a></strong>(T[] param1)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#isOneOf(T...)">isOneOf</a></strong>(T... elements)</code>
<div class="block">Creates a matcher that matches when the examined object is equal to one of the
specified elements.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#iterableWithSize(int)">iterableWithSize</a></strong>(int size)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields an item count that is equal to the specified
<code>size</code> argument.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<E>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#iterableWithSize(org.hamcrest.Matcher)">iterableWithSize</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.Integer> sizeMatcher)</code>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields an item count that satisfies the specified
matcher.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T extends java.lang.Comparable<T>> <br><a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#lessThan(T)">lessThan</a></strong>(T value)</code>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
less than the specified value, as reported by the <code>compareTo</code> method of the
<b>examined</b> object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T extends java.lang.Comparable<T>> <br><a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#lessThanOrEqualTo(T)">lessThanOrEqualTo</a></strong>(T value)</code>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
less than or equal to the specified value, as reported by the <code>compareTo</code> method
of the <b>examined</b> object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#not(org.hamcrest.Matcher)">not</a></strong>(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> matcher)</code>
<div class="block">Creates a matcher that wraps an existing matcher, but inverts the logic by which
it will match.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#not(T)">not</a></strong>(T value)</code>
<div class="block">A shortcut to the frequently used <code>not(equalTo(x))</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#notNullValue()">notNullValue</a></strong>()</code>
<div class="block">A shortcut to the frequently used <code>not(nullValue())</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#notNullValue(java.lang.Class)">notNullValue</a></strong>(java.lang.Class<T> type)</code>
<div class="block">A shortcut to the frequently used <code>not(nullValue(X.class)).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#nullValue()">nullValue</a></strong>()</code>
<div class="block">Creates a matcher that matches if examined object is <code>null</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#nullValue(java.lang.Class)">nullValue</a></strong>(java.lang.Class<T> type)</code>
<div class="block">Creates a matcher that matches if examined object is <code>null</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#sameInstance(T)">sameInstance</a></strong>(T target)</code>
<div class="block">Creates a matcher that matches only when the examined object is the same instance as
the specified target object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#samePropertyValuesAs(T)">samePropertyValuesAs</a></strong>(T expectedBean)</code>
<div class="block">Creates a matcher that matches when the examined object has values for all of
its JavaBean properties that are equal to the corresponding values of the
specified bean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#startsWith(java.lang.String)">startsWith</a></strong>(java.lang.String prefix)</code>
<div class="block">Creates a matcher that matches if the examined <code>String</code> starts with the specified
<code>String</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#stringContainsInOrder(java.lang.Iterable)">stringContainsInOrder</a></strong>(java.lang.Iterable<java.lang.String> substrings)</code>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string contains all of
the specified substrings, regardless of the order of their appearance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#theInstance(T)">theInstance</a></strong>(T target)</code>
<div class="block">Creates a matcher that matches only when the examined object is the same instance as
the specified target object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Class<?>></code></td>
<td class="colLast"><code><strong><a href="../../org/hamcrest/Matchers.html#typeCompatibleWith(java.lang.Class)">typeCompatibleWith</a></strong>(java.lang.Class<T> baseType)</code>
<div class="block">Creates a matcher of <code>Class</code> that matches when the specified baseType is
assignable from the examined class.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Matchers()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Matchers</h4>
<pre>public Matchers()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="allOf(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... matchers)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> sixth)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="allOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="allOf(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(java.lang.Iterable<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>> matchers)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="allOf(org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> allOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", allOf(startsWith("my"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(java.lang.Iterable<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>> matchers)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... matchers)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> third,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fourth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> fifth,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> sixth)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="anyOf(org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anyOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/core/AnyOf.html" title="class in org.hamcrest.core">AnyOf</a><T> anyOf(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> first,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> second)</pre>
<div class="block">Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
<p/>
For example:
<pre>assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))</pre></div>
</li>
</ul>
<a name="both(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>both</h4>
<pre>public static <LHS> <a href="../../org/hamcrest/core/CombinableMatcher.CombinableBothMatcher.html" title="class in org.hamcrest.core">CombinableMatcher.CombinableBothMatcher</a><LHS> both(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super LHS> matcher)</pre>
<div class="block">Creates a matcher that matches when both of the specified matchers match the examined object.
<p/>
For example:
<pre>assertThat("fab", both(containsString("a")).and(containsString("b")))</pre></div>
</li>
</ul>
<a name="either(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>either</h4>
<pre>public static <LHS> <a href="../../org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html" title="class in org.hamcrest.core">CombinableMatcher.CombinableEitherMatcher</a><LHS> either(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super LHS> matcher)</pre>
<div class="block">Creates a matcher that matches when either of the specified matchers match the examined object.
<p/>
For example:
<pre>assertThat("fan", either(containsString("a")).and(containsString("b")))</pre></div>
</li>
</ul>
<a name="describedAs(java.lang.String, org.hamcrest.Matcher, java.lang.Object...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>describedAs</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> describedAs(java.lang.String description,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> matcher,
java.lang.Object... values)</pre>
<div class="block">Wraps an existing matcher, overriding its description with that specified. All other functions are
delegated to the decorated matcher, including its mismatch description.
<p/>
For example:
<pre>describedAs("a big decimal equal to %0", equalTo(myBigDecimal), myBigDecimal.toPlainString())</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>description</code> - the new description for the wrapped matcher</dd><dd><code>matcher</code> - the matcher to wrap</dd><dd><code>values</code> - optional values to insert into the tokenised description</dd></dl>
</li>
</ul>
<a name="everyItem(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>everyItem</h4>
<pre>public static <U> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<U>> everyItem(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><U> itemMatcher)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that only matches when a single pass over the
examined <code>Iterable</code> yields items that are all matched by the specified
<code>itemMatcher</code>.
<p/>
For example:
<pre>assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatcher</code> - the matcher to apply to every item provided by the examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="isA(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isA</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> isA(java.lang.Class<T> type)</pre>
<div class="block">A shortcut to the frequently used <code>is(instanceOf(SomeClass.class))</code>.
<p/>
For example:
<pre>assertThat(cheese, isA(Cheddar.class))</pre>
instead of:
<pre>assertThat(cheese, is(instanceOf(Cheddar.class)))</pre></div>
</li>
</ul>
<a name="is(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>is</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> is(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> matcher)</pre>
<div class="block">Decorates another Matcher, retaining its behaviour, but allowing tests
to be slightly more expressive.
<p/>
For example:
<pre>assertThat(cheese, is(equalTo(smelly)))</pre>
instead of:
<pre>assertThat(cheese, equalTo(smelly))</pre></div>
</li>
</ul>
<a name="is(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>is</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> is(java.lang.Class<T> type)</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>use isA(Class<T> type) instead.</i></div>
<div class="block">A shortcut to the frequently used <code>is(instanceOf(SomeClass.class))</code>.
<p/>
For example:
<pre>assertThat(cheese, is(Cheddar.class))</pre>
instead of:
<pre>assertThat(cheese, is(instanceOf(Cheddar.class)))</pre></div>
</li>
</ul>
<a name="is(java.lang.Object)">
<!-- -->
</a><a name="is(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>is</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> is(T value)</pre>
<div class="block">A shortcut to the frequently used <code>is(equalTo(x))</code>.
<p/>
For example:
<pre>assertThat(cheese, is(smelly))</pre>
instead of:
<pre>assertThat(cheese, is(equalTo(smelly)))</pre></div>
</li>
</ul>
<a name="anything(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anything</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object> anything(java.lang.String description)</pre>
<div class="block">Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified <code>String</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>description</code> - a meaningful <code>String</code> used when describing itself</dd></dl>
</li>
</ul>
<a name="anything()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>anything</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object> anything()</pre>
<div class="block">Creates a matcher that always matches, regardless of the examined object.</div>
</li>
</ul>
<a name="hasItem(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasItem</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? super T>> hasItem(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> itemMatcher)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that only matches when a single pass over the
examined <code>Iterable</code> yields at least one item that is matched by the specified
<code>itemMatcher</code>. Whilst matching, the traversal of the examined <code>Iterable</code>
will stop as soon as a matching item is found.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), hasItem(startsWith("ba")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatcher</code> - the matcher to apply to items provided by the examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="hasItem(java.lang.Object)">
<!-- -->
</a><a name="hasItem(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasItem</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? super T>> hasItem(T item)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that only matches when a single pass over the
examined <code>Iterable</code> yields at least one item that is equal to the specified
<code>item</code>. Whilst matching, the traversal of the examined <code>Iterable</code>
will stop as soon as a matching item is found.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), hasItem("bar"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>item</code> - the item to compare against the items provided by the examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="hasItems(java.lang.Object[])">
<!-- -->
</a><a name="hasItems(T...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasItems</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<T>> hasItems(T... items)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when consecutive passes over the
examined <code>Iterable</code> yield at least one item that is equal to the corresponding
item from the specified <code>items</code>. Whilst matching, each traversal of the
examined <code>Iterable</code> will stop as soon as a matching item is found.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar", "baz"), hasItems("baz", "foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>items</code> - the items to compare against the items provided by the examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="hasItems(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasItems</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<T>> hasItems(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... itemMatchers)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when consecutive passes over the
examined <code>Iterable</code> yield at least one item that is matched by the corresponding
matcher from the specified <code>itemMatchers</code>. Whilst matching, each traversal of
the examined <code>Iterable</code> will stop as soon as a matching item is found.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar", "baz"), hasItems(endsWith("z"), endsWith("o")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - the matchers to apply to items provided by the examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="equalTo(java.lang.Object)">
<!-- -->
</a><a name="equalTo(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalTo</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> equalTo(T operand)</pre>
<div class="block">Creates a matcher that matches when the examined object is logically equal to the specified
<code>operand</code>, as determined by calling the <code>Object.equals(java.lang.Object)</code> method on
the <b>examined</b> object.
<p>If the specified operand is <code>null</code> then the created matcher will only match if
the examined object's <code>equals</code> method returns <code>true</code> when passed a
<code>null</code> (which would be a violation of the <code>equals</code> contract), unless the
examined object itself is <code>null</code>, in which case the matcher will return a positive
match.</p>
<p>The created matcher provides a special behaviour when examining <code>Array</code>s, whereby
it will match if both the operand and the examined object are arrays of the same length and
contain items that are equal to each other (according to the above rules) <b>in the same
indexes</b>.</p>
<p/>
For example:
<pre>
assertThat("foo", equalTo("foo"));
assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));
</pre></div>
</li>
</ul>
<a name="any(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>any</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> any(java.lang.Class<T> type)</pre>
<div class="block">Creates a matcher that matches when the examined object is an instance of the specified <code>type</code>,
as determined by calling the <code>Class.isInstance(Object)</code> method on that type, passing the
the examined object.
<p>The created matcher forces a relationship between specified type and the examined object, and should be
used when it is necessary to make generics conform, for example in the JMock clause
<code>with(any(Thing.class))</code></p>
<p/>
For example:
<pre>assertThat(new Canoe(), instanceOf(Canoe.class));</pre></div>
</li>
</ul>
<a name="instanceOf(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>instanceOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> instanceOf(java.lang.Class<?> type)</pre>
<div class="block">Creates a matcher that matches when the examined object is an instance of the specified <code>type</code>,
as determined by calling the <code>Class.isInstance(Object)</code> method on that type, passing the
the examined object.
<p>The created matcher assumes no relationship between specified type and the examined object.</p>
<p/>
For example:
<pre>assertThat(new Canoe(), instanceOf(Paddlable.class));</pre></div>
</li>
</ul>
<a name="not(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>not</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> not(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> matcher)</pre>
<div class="block">Creates a matcher that wraps an existing matcher, but inverts the logic by which
it will match.
<p/>
For example:
<pre>assertThat(cheese, is(not(equalTo(smelly))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>matcher</code> - the matcher whose sense should be inverted</dd></dl>
</li>
</ul>
<a name="not(java.lang.Object)">
<!-- -->
</a><a name="not(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>not</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> not(T value)</pre>
<div class="block">A shortcut to the frequently used <code>not(equalTo(x))</code>.
<p/>
For example:
<pre>assertThat(cheese, is(not(smelly)))</pre>
instead of:
<pre>assertThat(cheese, is(not(equalTo(smelly))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value that any examined object should <b>not</b> equal</dd></dl>
</li>
</ul>
<a name="nullValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nullValue</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object> nullValue()</pre>
<div class="block">Creates a matcher that matches if examined object is <code>null</code>.
<p/>
For example:
<pre>assertThat(cheese, is(nullValue())</pre></div>
</li>
</ul>
<a name="nullValue(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nullValue</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> nullValue(java.lang.Class<T> type)</pre>
<div class="block">Creates a matcher that matches if examined object is <code>null</code>. Accepts a
single dummy argument to facilitate type inference.
<p/>
For example:
<pre>assertThat(cheese, is(nullValue(Cheese.class))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - dummy parameter used to infer the generic type of the returned matcher</dd></dl>
</li>
</ul>
<a name="notNullValue(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notNullValue</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> notNullValue(java.lang.Class<T> type)</pre>
<div class="block">A shortcut to the frequently used <code>not(nullValue(X.class)). Accepts a
single dummy argument to facilitate type inference.</code>.
<p/>
For example:
<pre>assertThat(cheese, is(notNullValue(X.class)))</pre>
instead of:
<pre>assertThat(cheese, is(not(nullValue(X.class))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - dummy parameter used to infer the generic type of the returned matcher</dd></dl>
</li>
</ul>
<a name="notNullValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notNullValue</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Object> notNullValue()</pre>
<div class="block">A shortcut to the frequently used <code>not(nullValue())</code>.
<p/>
For example:
<pre>assertThat(cheese, is(notNullValue()))</pre>
instead of:
<pre>assertThat(cheese, is(not(nullValue())))</pre></div>
</li>
</ul>
<a name="sameInstance(java.lang.Object)">
<!-- -->
</a><a name="sameInstance(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sameInstance</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> sameInstance(T target)</pre>
<div class="block">Creates a matcher that matches only when the examined object is the same instance as
the specified target object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - the target instance against which others should be assessed</dd></dl>
</li>
</ul>
<a name="theInstance(java.lang.Object)">
<!-- -->
</a><a name="theInstance(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>theInstance</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> theInstance(T target)</pre>
<div class="block">Creates a matcher that matches only when the examined object is the same instance as
the specified target object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - the target instance against which others should be assessed</dd></dl>
</li>
</ul>
<a name="containsString(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsString</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> containsString(java.lang.String substring)</pre>
<div class="block">Creates a matcher that matches if the examined <code>String</code> contains the specified
<code>String</code> anywhere.
<p/>
For example:
<pre>assertThat("myStringOfNote", containsString("ring"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>substring</code> - the substring that the returned matcher will expect to find within any examined string</dd></dl>
</li>
</ul>
<a name="startsWith(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startsWith</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> startsWith(java.lang.String prefix)</pre>
<div class="block">Creates a matcher that matches if the examined <code>String</code> starts with the specified
<code>String</code>.
<p/>
For example:
<pre>assertThat("myStringOfNote", startsWith("my"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefix</code> - the substring that the returned matcher will expect at the start of any examined string</dd></dl>
</li>
</ul>
<a name="endsWith(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>endsWith</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> endsWith(java.lang.String suffix)</pre>
<div class="block">Creates a matcher that matches if the examined <code>String</code> ends with the specified
<code>String</code>.
<p/>
For example:
<pre>assertThat("myStringOfNote", endsWith("Note"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>suffix</code> - the substring that the returned matcher will expect at the end of any examined string</dd></dl>
</li>
</ul>
<a name="array(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>array</h4>
<pre>public static <T> <a href="../../org/hamcrest/collection/IsArray.html" title="class in org.hamcrest.collection">IsArray</a><T> array(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... elementMatchers)</pre>
<div class="block">Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. Matches
positively only if the number of matchers specified is equal to the length of the examined array and
each matcher[i] is satisfied by array[i].
<p/>
For example:
<pre>assertThat(new Integer[]{1,2,3}, is(array(equalTo(1), equalTo(2), equalTo(3))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>elementMatchers</code> - the matchers that the elements of examined arrays should satisfy</dd></dl>
</li>
</ul>
<a name="hasItemInArray(java.lang.Object)">
<!-- -->
</a><a name="hasItemInArray(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasItemInArray</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T[]> hasItemInArray(T element)</pre>
<div class="block">A shortcut to the frequently used <code>hasItemInArray(equalTo(x))</code>.
<p/>
For example:
<pre>assertThat(hasItemInArray(x))</pre>
instead of:
<pre>assertThat(hasItemInArray(equalTo(x)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>element</code> - the element that should be present in examined arrays</dd></dl>
</li>
</ul>
<a name="hasItemInArray(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasItemInArray</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T[]> hasItemInArray(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T> elementMatcher)</pre>
<div class="block">Creates a matcher for arrays that matches when the examined array contains at least one item
that is matched by the specified <code>elementMatcher</code>. Whilst matching, the traversal
of the examined array will stop as soon as a matching element is found.
<p/>
For example:
<pre>assertThat(new String[] {"foo", "bar"}, hasItemInArray(startsWith("ba")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>elementMatcher</code> - the matcher to apply to elements in examined arrays</dd></dl>
</li>
</ul>
<a name="arrayContaining(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayContaining</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayContaining(java.util.List<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>> itemMatchers)</pre>
<div class="block">Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified list of matchers. For a positive match, the examined array
must be of the same length as the specified list of matchers.
<p/>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - a list of matchers, each of which must be satisfied by the corresponding item in an examined array</dd></dl>
</li>
</ul>
<a name="arrayContaining(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayContaining</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayContaining(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>... itemMatchers)</pre>
<div class="block">Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified matchers. For a positive match, the examined array
must be of the same length as the number of specified matchers.
<p/>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - the matchers that must be satisfied by the items in the examined array</dd></dl>
</li>
</ul>
<a name="arrayContaining(java.lang.Object[])">
<!-- -->
</a><a name="arrayContaining(E...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayContaining</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayContaining(E... items)</pre>
<div class="block">Creates a matcher for arrays that matcheswhen each item in the examined array is
logically equal to the corresponding item in the specified items. For a positive match,
the examined array must be of the same length as the number of specified items.
<p/>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, contains("foo", "bar"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>items</code> - the items that must equal the items within an examined array</dd></dl>
</li>
</ul>
<a name="arrayContainingInAnyOrder(java.lang.Object[])">
<!-- -->
</a><a name="arrayContainingInAnyOrder(E...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayContainingInAnyOrder</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayContainingInAnyOrder(E... items)</pre>
<div class="block">Creates an order agnostic matcher for arrays that matches when each item in the
examined array is logically equal to one item anywhere in the specified items.
For a positive match, the examined array must be of the same length as the number of
specified items.
<p/>
N.B. each of the specified items will only be used once during a given examination, so be
careful when specifying items that may be equal to more than one entry in an examined
array.
<p>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, containsInAnyOrder("bar", "foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>items</code> - the items that must equal the entries of an examined array, in any order</dd></dl>
</li>
</ul>
<a name="arrayContainingInAnyOrder(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayContainingInAnyOrder</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayContainingInAnyOrder(java.util.Collection<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>> itemMatchers)</pre>
<div class="block">Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified collection of matchers.
For a positive match, the examined array must be of the same length as the specified collection
of matchers.
<p/>
N.B. each matcher in the specified collection will only be used once during a given
examination, so be careful when specifying matchers that may be satisfied by more than
one entry in an examined array.
<p>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - a list of matchers, each of which must be satisfied by an item provided by an examined array</dd></dl>
</li>
</ul>
<a name="arrayContainingInAnyOrder(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayContainingInAnyOrder</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayContainingInAnyOrder(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>... itemMatchers)</pre>
<div class="block">Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified matchers.
For a positive match, the examined array must be of the same length as the number of
specified matchers.
<p/>
N.B. each of the specified matchers will only be used once during a given examination, so be
careful when specifying matchers that may be satisfied by more than one entry in an examined
array.
<p>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(equalTo("bar"), equalTo("foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - a list of matchers, each of which must be satisfied by an entry in an examined array</dd></dl>
</li>
</ul>
<a name="arrayWithSize(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayWithSize</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayWithSize(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.Integer> sizeMatcher)</pre>
<div class="block">Creates a matcher for arrays that matches when the <code>length</code> of the array
satisfies the specified matcher.
<p/>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, arrayWithSize(equalTo(2)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sizeMatcher</code> - a matcher for the length of an examined array</dd></dl>
</li>
</ul>
<a name="arrayWithSize(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayWithSize</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> arrayWithSize(int size)</pre>
<div class="block">Creates a matcher for arrays that matches when the <code>length</code> of the array
equals the specified <code>size</code>.
<p/>
For example:
<pre>assertThat(new String[]{"foo", "bar"}, arrayWithSize(2))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>size</code> - the length that an examined array must have for a positive match</dd></dl>
</li>
</ul>
<a name="emptyArray()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>emptyArray</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><E[]> emptyArray()</pre>
<div class="block">Creates a matcher for arrays that matches when the <code>length</code> of the array
is zero.
<p/>
For example:
<pre>assertThat(new String[0], emptyArray())</pre></div>
</li>
</ul>
<a name="hasSize(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasSize</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<? extends E>> hasSize(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.Integer> sizeMatcher)</pre>
<div class="block">Creates a matcher for <code>Collection</code>s that matches when the <code>size()</code> method returns
a value that satisfies the specified matcher.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sizeMatcher</code> - a matcher for the size of an examined <code>Collection</code></dd></dl>
</li>
</ul>
<a name="hasSize(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasSize</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<? extends E>> hasSize(int size)</pre>
<div class="block">Creates a matcher for <code>Collection</code>s that matches when the <code>size()</code> method returns
a value equal to the specified <code>size</code>.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), hasSize(2))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>size</code> - the expected size of an examined <code>Collection</code></dd></dl>
</li>
</ul>
<a name="emptyCollectionOf(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>emptyCollectionOf</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<E>> emptyCollectionOf(java.lang.Class<E> type)</pre>
<div class="block">Creates a matcher for <code>Collection</code>s matching examined collections whose <code>isEmpty</code>
method returns <code>true</code>.
<p/>
For example:
<pre>assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the type of the collection's content</dd></dl>
</li>
</ul>
<a name="empty()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>empty</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Collection<? extends E>> empty()</pre>
<div class="block">Creates a matcher for <code>Collection</code>s matching examined collections whose <code>isEmpty</code>
method returns <code>true</code>.
<p/>
For example:
<pre>assertThat(new ArrayList<String>(), is(empty()))</pre></div>
</li>
</ul>
<a name="emptyIterableOf(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>emptyIterableOf</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<E>> emptyIterableOf(java.lang.Class<E> type)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s matching examined iterables that yield no items.
<p/>
For example:
<pre>assertThat(new ArrayList<String>(), is(emptyIterableOf(String.class)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the type of the iterable's content</dd></dl>
</li>
</ul>
<a name="emptyIterable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>emptyIterable</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>> emptyIterable()</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s matching examined iterables that yield no items.
<p/>
For example:
<pre>assertThat(new ArrayList<String>(), is(emptyIterable()))</pre></div>
</li>
</ul>
<a name="contains(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>> contains(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E> itemMatcher)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a single item that satisfies the specified matcher.
For a positive match, the examined iterable must only yield one item.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo"), contains(equalTo("foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatcher</code> - the matcher that must be satisfied by the single item provided by an
examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="contains(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>> contains(java.util.List<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>> itemMatchers)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a series of items, each satisfying the corresponding
matcher in the specified list of matchers. For a positive match, the examined iterable
must be of the same length as the specified list of matchers.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - a list of matchers, each of which must be satisfied by the corresponding item provided by
an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="contains(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>> contains(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E>... itemMatchers)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a series of items, each satisfying the corresponding
matcher in the specified matchers. For a positive match, the examined iterable
must be of the same length as the number of specified matchers.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), contains(equalTo("foo"), equalTo("bar")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - the matchers that must be satisfied by the items provided by an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="contains(java.lang.Object[])">
<!-- -->
</a><a name="contains(E...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>> contains(E... items)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a series of items, each logically equal to the
corresponding item in the specified items. For a positive match, the examined iterable
must be of the same length as the number of specified items.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), contains("foo", "bar"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>items</code> - the items that must equal the items provided by an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="containsInAnyOrder(java.lang.Object[])">
<!-- -->
</a><a name="containsInAnyOrder(T...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsInAnyOrder</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends T>> containsInAnyOrder(T... items)</pre>
<div class="block">Creates an order agnostic matcher for <code>Iterable</code>s that matches when a single pass over
the examined <code>Iterable</code> yields a series of items, each logically equal to one item
anywhere in the specified items. For a positive match, the examined iterable
must be of the same length as the number of specified items.
<p/>
N.B. each of the specified items will only be used once during a given examination, so be
careful when specifying items that may be equal to more than one entry in an examined
iterable.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder("bar", "foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>items</code> - the items that must equal the items provided by an examined <code>Iterable</code> in any order</dd></dl>
</li>
</ul>
<a name="containsInAnyOrder(org.hamcrest.Matcher...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsInAnyOrder</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends T>> containsInAnyOrder(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>... itemMatchers)</pre>
<div class="block">Creates an order agnostic matcher for <code>Iterable</code>s that matches when a single pass over
the examined <code>Iterable</code> yields a series of items, each satisfying one matcher anywhere
in the specified matchers. For a positive match, the examined iterable must be of the same
length as the number of specified matchers.
<p/>
N.B. each of the specified matchers will only be used once during a given examination, so be
careful when specifying matchers that may be satisfied by more than one entry in an examined
iterable.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(equalTo("bar"), equalTo("foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - a list of matchers, each of which must be satisfied by an item provided by an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="containsInAnyOrder(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsInAnyOrder</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends T>> containsInAnyOrder(java.util.Collection<<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super T>> itemMatchers)</pre>
<div class="block">Creates an order agnostic matcher for <code>Iterable</code>s that matches when a single pass over
the examined <code>Iterable</code> yields a series of items, each satisfying one matcher anywhere
in the specified collection of matchers. For a positive match, the examined iterable
must be of the same length as the specified collection of matchers.
<p/>
N.B. each matcher in the specified collection will only be used once during a given
examination, so be careful when specifying matchers that may be satisfied by more than
one entry in an examined iterable.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatchers</code> - a list of matchers, each of which must be satisfied by an item provided by an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="containsInAnyOrder(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsInAnyOrder</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<? extends E>> containsInAnyOrder(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super E> itemMatcher)</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>use contains(Matcher<? super E> itemMatcher) instead</i></div>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields a single item that satisfies the specified matcher.
For a positive match, the examined iterable must only yield one item.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo"), containsInAnyOrder(equalTo("foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>itemMatcher</code> - the matcher that must be satisfied by the single item provided by an
examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="iterableWithSize(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterableWithSize</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<E>> iterableWithSize(int size)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields an item count that is equal to the specified
<code>size</code> argument.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), iterableWithSize(2))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>size</code> - the number of items that should be yielded by an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="iterableWithSize(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterableWithSize</h4>
<pre>public static <E> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Iterable<E>> iterableWithSize(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.Integer> sizeMatcher)</pre>
<div class="block">Creates a matcher for <code>Iterable</code>s that matches when a single pass over the
examined <code>Iterable</code> yields an item count that satisfies the specified
matcher.
<p/>
For example:
<pre>assertThat(Arrays.asList("foo", "bar"), iterableWithSize(equalTo(2)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sizeMatcher</code> - a matcher for the number of items that should be yielded by an examined <code>Iterable</code></dd></dl>
</li>
</ul>
<a name="hasEntry(java.lang.Object,java.lang.Object)">
<!-- -->
</a><a name="hasEntry(K, V)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasEntry</h4>
<pre>public static <K,V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,? extends V>> hasEntry(K key,
V value)</pre>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one entry whose key equals the specified <code>key</code> <b>and</b> whose value equals the
specified <code>value</code>.
<p/>
For example:
<pre>assertThat(myMap, hasEntry("bar", "foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - the key that, in combination with the value, must be describe at least one entry</dd><dd><code>value</code> - the value that, in combination with the key, must be describe at least one entry</dd></dl>
</li>
</ul>
<a name="hasEntry(org.hamcrest.Matcher, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasEntry</h4>
<pre>public static <K,V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,? extends V>> hasEntry(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super K> keyMatcher,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super V> valueMatcher)</pre>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one entry whose key satisfies the specified <code>keyMatcher</code> <b>and</b> whose
value satisfies the specified <code>valueMatcher</code>.
<p/>
For example:
<pre>assertThat(myMap, hasEntry(equalTo("bar"), equalTo("foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>keyMatcher</code> - the key matcher that, in combination with the valueMatcher, must be satisfied by at least one entry</dd><dd><code>valueMatcher</code> - the value matcher that, in combination with the keyMatcher, must be satisfied by at least one entry</dd></dl>
</li>
</ul>
<a name="hasKey(java.lang.Object)">
<!-- -->
</a><a name="hasKey(K)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasKey</h4>
<pre>public static <K> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,?>> hasKey(K key)</pre>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one key that is equal to the specified key.
<p/>
For example:
<pre>assertThat(myMap, hasKey("bar"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - the key that satisfying maps must contain</dd></dl>
</li>
</ul>
<a name="hasKey(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasKey</h4>
<pre>public static <K> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<? extends K,?>> hasKey(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super K> keyMatcher)</pre>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one key that satisfies the specified matcher.
<p/>
For example:
<pre>assertThat(myMap, hasKey(equalTo("bar")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>keyMatcher</code> - the matcher that must be satisfied by at least one key</dd></dl>
</li>
</ul>
<a name="hasValue(java.lang.Object)">
<!-- -->
</a><a name="hasValue(V)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasValue</h4>
<pre>public static <V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<?,? extends V>> hasValue(V value)</pre>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one value that is equal to the specified value.
<p/>
For example:
<pre>assertThat(myMap, hasValue("foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value that satisfying maps must contain</dd></dl>
</li>
</ul>
<a name="hasValue(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasValue</h4>
<pre>public static <V> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.Map<?,? extends V>> hasValue(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super V> valueMatcher)</pre>
<div class="block">Creates a matcher for <code>Map</code>s matching when the examined <code>Map</code> contains
at least one value that satisfies the specified valueMatcher.
<p/>
For example:
<pre>assertThat(myMap, hasValue(equalTo("foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>valueMatcher</code> - the matcher that must be satisfied by at least one value</dd></dl>
</li>
</ul>
<a name="isIn(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIn</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> isIn(java.util.Collection<T> collection)</pre>
<div class="block">Creates a matcher that matches when the examined object is found within the
specified collection.
<p/>
For example:
<pre>assertThat("foo", isIn(Arrays.asList("bar", "foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>collection</code> - the collection in which matching items must be found</dd></dl>
</li>
</ul>
<a name="isIn(java.lang.Object[])">
<!-- -->
</a><a name="isIn(T[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIn</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> isIn(T[] param1)</pre>
</li>
</ul>
<a name="isOneOf(java.lang.Object[])">
<!-- -->
</a><a name="isOneOf(T...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOneOf</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> isOneOf(T... elements)</pre>
<div class="block">Creates a matcher that matches when the examined object is equal to one of the
specified elements.
<p/>
For example:
<pre>assertThat("foo", isIn("bar", "foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>elements</code> - the elements amongst which matching items will be found</dd></dl>
</li>
</ul>
<a name="closeTo(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>closeTo</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Double> closeTo(double operand,
double error)</pre>
<div class="block">Creates a matcher of <code>Double</code>s that matches when an examined double is equal
to the specified <code>operand</code>, within a range of +/- <code>error</code>.
<p/>
For example:
<pre>assertThat(1.03, is(closeTo(1.0, 0.03)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>operand</code> - the expected value of matching doubles</dd><dd><code>error</code> - the delta (+/-) within which matches will be allowed</dd></dl>
</li>
</ul>
<a name="closeTo(java.math.BigDecimal, java.math.BigDecimal)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>closeTo</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.math.BigDecimal> closeTo(java.math.BigDecimal operand,
java.math.BigDecimal error)</pre>
<div class="block">Creates a matcher of <code>BigDecimal</code>s that matches when an examined BigDecimal is equal
to the specified <code>operand</code>, within a range of +/- <code>error</code>. The comparison for equality
is done by BigDecimals <code>BigDecimal.compareTo(java.math.BigDecimal)</code> method.
<p/>
For example:
<pre>assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>operand</code> - the expected value of matching BigDecimals</dd><dd><code>error</code> - the delta (+/-) within which matches will be allowed</dd></dl>
</li>
</ul>
<a name="comparesEqualTo(java.lang.Comparable)">
<!-- -->
</a><a name="comparesEqualTo(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>comparesEqualTo</h4>
<pre>public static <T extends java.lang.Comparable<T>> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> comparesEqualTo(T value)</pre>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
equal to the specified value, as reported by the <code>compareTo</code> method of the
<b>examined</b> object.
<p/>
For example:
<pre>assertThat(1, comparesEqualTo(1))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value which, when passed to the compareTo method of the examined object, should return zero</dd></dl>
</li>
</ul>
<a name="greaterThan(java.lang.Comparable)">
<!-- -->
</a><a name="greaterThan(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>greaterThan</h4>
<pre>public static <T extends java.lang.Comparable<T>> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> greaterThan(T value)</pre>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
greater than the specified value, as reported by the <code>compareTo</code> method of the
<b>examined</b> object.
<p/>
For example:
<pre>assertThat(2, greaterThan(1))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value which, when passed to the compareTo method of the examined object, should return greater
than zero</dd></dl>
</li>
</ul>
<a name="greaterThanOrEqualTo(java.lang.Comparable)">
<!-- -->
</a><a name="greaterThanOrEqualTo(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>greaterThanOrEqualTo</h4>
<pre>public static <T extends java.lang.Comparable<T>> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> greaterThanOrEqualTo(T value)</pre>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
greater than or equal to the specified value, as reported by the <code>compareTo</code> method
of the <b>examined</b> object.
<p/>
For example:
<pre>assertThat(1, greaterThanOrEqualTo(1))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value which, when passed to the compareTo method of the examined object, should return greater
than or equal to zero</dd></dl>
</li>
</ul>
<a name="lessThan(java.lang.Comparable)">
<!-- -->
</a><a name="lessThan(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lessThan</h4>
<pre>public static <T extends java.lang.Comparable<T>> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> lessThan(T value)</pre>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
less than the specified value, as reported by the <code>compareTo</code> method of the
<b>examined</b> object.
<p/>
For example:
<pre>assertThat(1, lessThan(2))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value which, when passed to the compareTo method of the examined object, should return less
than zero</dd></dl>
</li>
</ul>
<a name="lessThanOrEqualTo(java.lang.Comparable)">
<!-- -->
</a><a name="lessThanOrEqualTo(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lessThanOrEqualTo</h4>
<pre>public static <T extends java.lang.Comparable<T>> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> lessThanOrEqualTo(T value)</pre>
<div class="block">Creates a matcher of <code>Comparable</code> object that matches when the examined object is
less than or equal to the specified value, as reported by the <code>compareTo</code> method
of the <b>examined</b> object.
<p/>
For example:
<pre>assertThat(1, lessThanOrEqualTo(1))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value which, when passed to the compareTo method of the examined object, should return less
than or equal to zero</dd></dl>
</li>
</ul>
<a name="equalToIgnoringCase(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalToIgnoringCase</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> equalToIgnoringCase(java.lang.String expectedString)</pre>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string is equal to
the specified expectedString, ignoring case.
<p/>
For example:
<pre>assertThat("Foo", equalToIgnoringCase("FOO"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expectedString</code> - the expected value of matched strings</dd></dl>
</li>
</ul>
<a name="equalToIgnoringWhiteSpace(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalToIgnoringWhiteSpace</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> equalToIgnoringWhiteSpace(java.lang.String expectedString)</pre>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string is equal to
the specified expectedString, when whitespace differences are (mostly) ignored. To be
exact, the following whitespace rules are applied:
<ul>
<li>all leading and trailing whitespace of both the expectedString and the examined string are ignored</li>
<li>any remaining whitespace, appearing within either string, is collapsed to a single space before comparison</li>
</ul>
<p/>
For example:
<pre>assertThat(" my\tfoo bar ", equalToIgnoringWhiteSpace(" my foo bar"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expectedString</code> - the expected value of matched strings</dd></dl>
</li>
</ul>
<a name="isEmptyOrNullString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmptyOrNullString</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> isEmptyOrNullString()</pre>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string is <code>null</code>, or
has zero length.
<p/>
For example:
<pre>assertThat(((String)null), isEmptyString())</pre></div>
</li>
</ul>
<a name="isEmptyString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmptyString</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> isEmptyString()</pre>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string has zero length.
<p/>
For example:
<pre>assertThat("", isEmptyString())</pre></div>
</li>
</ul>
<a name="stringContainsInOrder(java.lang.Iterable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringContainsInOrder</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings)</pre>
<div class="block">Creates a matcher of <code>String</code> that matches when the examined string contains all of
the specified substrings, regardless of the order of their appearance.
<p/>
For example:
<pre>assertThat("myfoobarbaz", stringContainsInOrder(Arrays.asList("bar", "foo")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>substrings</code> - the substrings that must be contained within matching strings</dd></dl>
</li>
</ul>
<a name="hasToString(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasToString</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> hasToString(java.lang.String expectedToString)</pre>
<div class="block">Creates a matcher that matches any examined object whose <code>toString</code> method
returns a value equalTo the specified string.
<p/>
For example:
<pre>assertThat(true, hasToString("TRUE"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expectedToString</code> - the expected toString result</dd></dl>
</li>
</ul>
<a name="hasToString(org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasToString</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> hasToString(<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><? super java.lang.String> toStringMatcher)</pre>
<div class="block">Creates a matcher that matches any examined object whose <code>toString</code> method
returns a value that satisfies the specified matcher.
<p/>
For example:
<pre>assertThat(true, hasToString(equalTo("TRUE")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>toStringMatcher</code> - the matcher used to verify the toString result</dd></dl>
</li>
</ul>
<a name="typeCompatibleWith(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>typeCompatibleWith</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> baseType)</pre>
<div class="block">Creates a matcher of <code>Class</code> that matches when the specified baseType is
assignable from the examined class.
<p/>
For example:
<pre>assertThat(Integer.class, typeCompatibleWith(Number.class))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>baseType</code> - the base class to examine classes against</dd></dl>
</li>
</ul>
<a name="eventFrom(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eventFrom</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.EventObject> eventFrom(java.lang.Object source)</pre>
<div class="block">Creates a matcher of <code>EventObject</code> that matches any EventObject
announced by <var>source</var>.
</p>
For example:
<pre>assertThat(myEvent, is(eventFrom(myBean)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the source of the event</dd></dl>
</li>
</ul>
<a name="eventFrom(java.lang.Class, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eventFrom</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.util.EventObject> eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass,
java.lang.Object source)</pre>
<div class="block">Creates a matcher of <code>EventObject</code> that matches any object
derived from <var>eventClass</var> announced by <var>source</var>.
</p>
For example:
<pre>assertThat(myEvent, is(eventFrom(PropertyChangeEvent.class, myBean)))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>eventClass</code> - the class of the event to match on</dd><dd><code>source</code> - the source of the event</dd></dl>
</li>
</ul>
<a name="hasProperty(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasProperty</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> hasProperty(java.lang.String propertyName)</pre>
<div class="block">Creates a matcher that matches when the examined object has a JavaBean property
with the specified name.
<p/>
For example:
<pre>assertThat(myBean, hasProperty("foo"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - the name of the JavaBean property that examined beans should possess</dd></dl>
</li>
</ul>
<a name="hasProperty(java.lang.String, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasProperty</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> hasProperty(java.lang.String propertyName,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><?> valueMatcher)</pre>
<div class="block">Creates a matcher that matches when the examined object has a JavaBean property
with the specified name whose value satisfies the specified matcher.
<p/>
For example:
<pre>assertThat(myBean, hasProperty("foo", equalTo("bar"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - the name of the JavaBean property that examined beans should possess</dd><dd><code>valueMatcher</code> - a matcher for the value of the specified property of the examined bean</dd></dl>
</li>
</ul>
<a name="samePropertyValuesAs(java.lang.Object)">
<!-- -->
</a><a name="samePropertyValuesAs(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>samePropertyValuesAs</h4>
<pre>public static <T> <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><T> samePropertyValuesAs(T expectedBean)</pre>
<div class="block">Creates a matcher that matches when the examined object has values for all of
its JavaBean properties that are equal to the corresponding values of the
specified bean.
<p/>
For example:
<pre>assertThat(myBean, samePropertyValuesAs(myExpectedBean))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>expectedBean</code> - the bean against which examined beans are compared</dd></dl>
</li>
</ul>
<a name="hasXPath(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasXPath</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node> hasXPath(java.lang.String xPath)</pre>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node contains a node
at the specified <code>xPath</code>, with any content.
<p/>
For example:
<pre>assertThat(xml, hasXPath("/root/something[2]/cheese"))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>xPath</code> - the target xpath</dd></dl>
</li>
</ul>
<a name="hasXPath(java.lang.String, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasXPath</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node> hasXPath(java.lang.String xPath,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> valueMatcher)</pre>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node has a value at the
specified <code>xPath</code> that satisfies the specified <code>valueMatcher</code>.
<p/>
For example:
<pre>assertThat(xml, hasXPath("/root/something[2]/cheese", equalTo("Cheddar")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>xPath</code> - the target xpath</dd><dd><code>valueMatcher</code> - matcher for the value at the specified xpath</dd></dl>
</li>
</ul>
<a name="hasXPath(java.lang.String, javax.xml.namespace.NamespaceContext)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasXPath</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node> hasXPath(java.lang.String xPath,
javax.xml.namespace.NamespaceContext namespaceContext)</pre>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node contains a node
at the specified <code>xPath</code> within the specified namespace context, with any content.
<p/>
For example:
<pre>assertThat(xml, hasXPath("/root/something[2]/cheese", myNs))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>xPath</code> - the target xpath</dd><dd><code>namespaceContext</code> - the namespace for matching nodes</dd></dl>
</li>
</ul>
<a name="hasXPath(java.lang.String, javax.xml.namespace.NamespaceContext, org.hamcrest.Matcher)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hasXPath</h4>
<pre>public static <a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><org.w3c.dom.Node> hasXPath(java.lang.String xPath,
javax.xml.namespace.NamespaceContext namespaceContext,
<a href="../../org/hamcrest/Matcher.html" title="interface in org.hamcrest">Matcher</a><java.lang.String> valueMatcher)</pre>
<div class="block">Creates a matcher of <code>Node</code>s that matches when the examined node has a value at the
specified <code>xPath</code>, within the specified <code>namespaceContext</code>, that satisfies
the specified <code>valueMatcher</code>.
<p/>
For example:
<pre>assertThat(xml, hasXPath("/root/something[2]/cheese", myNs, equalTo("Cheddar")))</pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>xPath</code> - the target xpath</dd><dd><code>namespaceContext</code> - the namespace for matching nodes</dd><dd><code>valueMatcher</code> - matcher for the value at the specified xpath</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Matchers.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../org/hamcrest/MatcherAssert.html" title="class in org.hamcrest"><span class="strong">Prev Class</span></a></li>
<li><a href="../../org/hamcrest/SelfDescribing.html" title="interface in org.hamcrest"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?org/hamcrest/Matchers.html" target="_top">Frames</a></li>
<li><a href="Matchers.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|