* * *

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

##  org.hamcrest.collection  
Class IsArray<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.IsArray <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 **IsArray <T>**extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<T[]>

Matcher for array whose elements satisfy a sequence of matchers. The array
size must equal the number of element matchers.

* * *

**Constructor Summary**  
---  
` **[ IsArray
](../../../org/hamcrest/collection/IsArray.html#IsArray\(org.hamcrest.Matcher\[\]\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super [ T ](../../../org/hamcrest/collection/IsArray.html
"type parameter in IsArray") >[] elementMatchers) `  
  
**Method Summary**  
---  
` static  |  ` <T> [ IsArray ](../../../org/hamcrest/collection/IsArray.html "class in org.hamcrest.collection") <T> `  
---  
` ` **[ array
](../../../org/hamcrest/collection/IsArray.html#array\(org.hamcrest.Matcher...\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super T>... elementMatchers) `  
Creates a matcher that matches arrays whose elements are satisfied by the
specified matchers.  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/collection/IsArray.html#describeMismatchSafely\(T\[\], org.hamcrest.Description\)) ** ( [ T ](../../../org/hamcrest/collection/IsArray.html "type parameter in IsArray") [] actual, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/collection/IsArray.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` protected java.lang.String ` |  ` **[ descriptionEnd ](../../../org/hamcrest/collection/IsArray.html#descriptionEnd\(\)) ** () `   
Returns the string that ends the description.  
` protected java.lang.String ` |  ` **[ descriptionSeparator ](../../../org/hamcrest/collection/IsArray.html#descriptionSeparator\(\)) ** () `   
Returns the string that separates the elements in the description.  
` protected java.lang.String ` |  ` **[ descriptionStart ](../../../org/hamcrest/collection/IsArray.html#descriptionStart\(\)) ** () `   
Returns the string that starts the description.  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/collection/IsArray.html#matchesSafely\(T\[\]\)) ** ( [ T ](../../../org/hamcrest/collection/IsArray.html "type parameter in IsArray") [] array) `   
Subclasses should implement t