* * *

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

##  org.hamcrest.collection  
Class IsArrayWithSize<E>

    
    
    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.TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<T>
              ![extended by ](../../../resources/inherit.gif)[org.hamcrest.FeatureMatcher](../../../org/hamcrest/FeatureMatcher.html "class in org.hamcrest")<E[],java.lang.Integer>
                  ![extended by ](../../../resources/inherit.gif)**org.hamcrest.collection.IsArrayWithSize <E>**
    

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

* * *
    
    
    public class **IsArrayWithSize <E>**extends [FeatureMatcher](../../../org/hamcrest/FeatureMatcher.html "class in org.hamcrest")<E[],java.lang.Integer>

Matches if array size satisfies a nested matcher.

* * *

**Constructor Summary**  
---  
` **[ IsArrayWithSize
](../../../org/hamcrest/collection/IsArrayWithSize.html#IsArrayWithSize\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super java.lang.Integer> sizeMatcher) `  
  
**Method Summary**  
---  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <E[]> `  
---  
` ` **[ arrayWithSize
](../../../org/hamcrest/collection/IsArrayWithSize.html#arrayWithSize\(int\))
** (int size) `  
Creates a matcher for arrays that matches when the ` length ` of the array
equals the specified ` size ` .  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <E[]> `  
---  
` ` **[ arrayWithSize
](../../../org/hamcrest/collection/IsArrayWithSize.html#arrayWithSize\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super java.lang.Integer> sizeMatcher) `  
Creates a matcher for arrays that matches when the ` length ` of the array
satisfies the specified matcher.  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <E[]> `  
---  
` ` **[ emptyArray
](../../../org/hamcrest/collection/IsArrayWithSize.html#emptyArray\(\)) ** ()
`  
Creates a matcher for arrays that matches when the ` length ` of the array is
zero.  
` protected java.lang.Integer ` |  ` **[ featureValueOf ](../../../org/hamcrest/collection/IsArrayWithSize.html#featureValueOf\(E\[\]\)) ** ( [ E ](../../../org/hamcrest/collection/IsArrayWithSize.html "type parameter in IsArrayWithSize") [] actual) `   
Implement this to extract the interesting feature.  
**Methods inherited from class org.hamcrest.[ FeatureMatcher
](../../../org/hamcrest/FeatureMatcher.html "class in org.hamcrest") **  
---  
` [ describeTo
](../../../org/hamcrest/FeatureMatcher.html#describeTo\(org.hamcrest.Description\))
, [ matches