* * *

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

##  org.hamcrest.collection  
Class IsIterableWithSize<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")<java.lang.Iterable<E>,java.lang.Integer>
                  ![extended by ](../../../resources/inherit.gif)**org.hamcrest.collection.IsIterableWithSize <E>**
    

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

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

* * *

**Constructor Summary**  
---  
` **[ IsIterableWithSize
](../../../org/hamcrest/collection/IsIterableWithSize.html#IsIterableWithSize\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super java.lang.Integer> sizeMatcher) `  
  
**Method Summary**  
---  
` protected java.lang.Integer ` |  ` **[ featureValueOf ](../../../org/hamcrest/collection/IsIterableWithSize.html#featureValueOf\(java.lang.Iterable\)) ** (java.lang.Iterable< [ E ](../../../org/hamcrest/collection/IsIterableWithSize.html "type parameter in IsIterableWithSize") > actual) `   
Implement this to extract the interesting feature.  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<E>> `  
---  
` ` **[ iterableWithSize
](../../../org/hamcrest/collection/IsIterableWithSize.html#iterableWithSize\(int\))
** (int size) `  
Creates a matcher for ` Iterable ` s that matches when a single pass over the
examined ` Iterable ` yields an item count that is equal to the specified `
size ` argument.  
` static  |  ` <E> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<E>> `  
---  
` ` **[ iterableWithSize
](../../../org/hamcrest/collection/IsIterableWithSize.html#iterableWithSize\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super java.lang.Integer> sizeMatcher) `  
Creates a matcher for ` Iterable ` s that matches when a single pass over the
examined ` Iterable ` yields an item count that satisfies the specified
matcher.  
**Methods inherited from class org.hamcrest.[ FeatureMatcher
](../../../org/hamcrest/FeatureMatcher.html "class in org.hamcrest") **  
---  
` [ describeTo
](../../../org/hamcrest/FeatureMatcher.html#describeTo\(org.hamcrest.Description\))
, [ matchesSafely
](../../../org/hamcrest/FeatureMatcher.html#matchesSaf