* * *

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

##  org.hamcrest.core  
Class AllOf<T>

    
    
    java.lang.Object
      ![extended by ](../../../resources/inherit.gif)[org.hamcrest.BaseMatcher](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest")<T>
          ![extended by ](../../../resources/inherit.gif)[org.hamcrest.DiagnosingMatcher](../../../org/hamcrest/DiagnosingMatcher.html "class in org.hamcrest")<T>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.core.AllOf <T>**
    

**All Implemented Interfaces:**      [ Matcher
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T>, [
SelfDescribing ](../../../org/hamcrest/SelfDescribing.html "interface in
org.hamcrest")

* * *
    
    
    public class **AllOf <T>**extends [DiagnosingMatcher](../../../org/hamcrest/DiagnosingMatcher.html "class in org.hamcrest")<T>

Calculates the logical conjunction of multiple matchers. Evaluation is
shortcut, so subsequent matchers are not called if an earlier matcher returns
` false ` .

* * *

**Constructor Summary**  
---  
` **[ AllOf
](../../../org/hamcrest/core/AllOf.html#AllOf\(java.lang.Iterable\)) **
(java.lang.Iterable< [ Matcher ](../../../org/hamcrest/Matcher.html "interface
in org.hamcrest") <? super [ T ](../../../org/hamcrest/core/AllOf.html "type
parameter in AllOf") >> matchers) `  
  
**Method Summary**  
---  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ allOf
](../../../org/hamcrest/core/AllOf.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/core/AllOf.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/core/AllOf.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/core/AllOf.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