* * *

|  [ **Overview** ](../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/Matchers.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../deprecated-list.html) |  [ **Index** ](../../index-all.html) |  [ **Help** ](../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../org/hamcrest/MatcherAssert.html "class in org.hamcrest") [ **NEXT CLASS** ](../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest") |  [ **FRAMES** ](../../index.html?org/hamcrest/Matchers.html) [ **NO FRAMES** ](Matchers.html) [ **All Classes** ](../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD |  CONSTR  |  METHOD  |  DETAIL: FIELD |  CONSTR  |  METHOD   
  
* * *

##  org.hamcrest  
Class Matchers

    
    
    java.lang.Object
      ![extended by ](../../resources/inherit.gif)**org.hamcrest.Matchers**
    

* * *
    
    
    public class **Matchers** extends java.lang.Object

* * *

**Constructor Summary**  
---  
` **[ Matchers ](../../org/hamcrest/Matchers.html#Matchers\(\)) ** () `  
  
**Method Summary**  
---  
` static  |  ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf ](../../org/hamcrest/Matchers.html#allOf\(java.lang.Iterable\))
** (java.lang.Iterable< [ Matcher ](../../org/hamcrest/Matcher.html "interface
in org.hamcrest") <? super T>> matchers) `  
Creates a matcher that matches if the examined object matches **ALL** of the
specified matchers.  
` static  |  ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf
](../../org/hamcrest/Matchers.html#allOf\(org.hamcrest.Matcher...\)) ** ( [
Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <?
super T>... matchers) `  
Creates a matcher that matches if the examined object matches **ALL** of the
specified matchers.  
` static  |  ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf ](../../org/hamcrest/Matchers.html#allOf\(org.hamcrest.Matcher,
org.hamcrest.Matcher\)) ** ( [ Matcher ](../../org/hamcrest/Matcher.html
"interface in org.hamcrest") <? super T> first, [ Matcher
](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <? super T>
second) `  
Creates a matcher that matches if the examined object matches **ALL** of the
specified matchers.  
` static  |  ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf ](../../org/hamcrest/Matchers.html#allOf\(org.hamcrest.Matcher,
org.hamcrest.Matcher, org.hamcrest.Matcher\)) ** ( [ Matcher
](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <? super T>
first, [ Matcher ](../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super T> second, [ Matcher ](../../org/hamcrest/Matcher.html
"interface in org.hamcrest") <? super T> third) `  
Creates a matcher that matches if the examined object matches **ALL** of the
specified matchers.  
` static  |  ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf ](../../org/hamcrest/Matchers.html#allOf\(org.hamcrest.Matcher,
org.hamcrest.Matcher, org.hamcrest.Matcher, org.hamcrest.Matcher\)) ** ( [
Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <?
super T> first, [ Matcher ](../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super T> second, [ Matcher ](../../org/hamcrest/Matcher.html
"interface in org.hamcrest") <? super T> third, [ Matcher
](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <? super T>
fourth) `  
Creates a matcher that matches if the examined object matches **ALL** of the
specified matchers.  
` static  |  ` <T> [ Matcher ](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf ](../../org/hamcrest/Matchers.html#allOf\(org.hamcrest.Matcher,
org.hamcrest.Matcher, org.hamcrest.Mat