* * *

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

##  org.hamcrest.collection  
Class IsArrayContaining<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.TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<T[]>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.collection.IsArrayContaining <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 **IsArrayContaining <T>**extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<T[]>

Matches if an array contains an item satisfying a nested matcher.

* * *

**Constructor Summary**  
---  
` **[ IsArrayContaining
](../../../org/hamcrest/collection/IsArrayContaining.html#IsArrayContaining\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super [ T
](../../../org/hamcrest/collection/IsArrayContaining.html "type parameter in
IsArrayContaining") > elementMatcher) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/collection/IsArrayContaining.html#describeMismatchSafely\(T\[\], org.hamcrest.Description\)) ** ( [ T ](../../../org/hamcrest/collection/IsArrayContaining.html "type parameter in IsArrayContaining") [] item, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/collection/IsArrayContaining.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T[]> `  
---  
` ` **[ hasItemInArray
](../../../org/hamcrest/collection/IsArrayContaining.html#hasItemInArray\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super T> elementMatcher) `  
Creates a matcher for arrays that matches when the examined array contains at
least one item that is matched by the specified ` elementMatcher ` .  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T[]> `  
---  
` ` **[ hasItemInArray
](../../../org/hamcrest/collection/IsArrayContaining.html#hasItemInArray\(T\))
** (T element) `  
A shortcut to the frequently used ` hasItemInArray(equalTo(x)) ` .  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/collection/IsArrayContaining.html#matchesSafely\(T\[\]\)) ** ( [ T ](../../../org/hamcrest/collection/IsArrayContaining.html "type parameter in IsArrayContaining") [] array) `   
Subclasses should implement this.  
**Met