* * *

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

##  org.hamcrest.core  
Class IsCollectionContaining<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.TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<java.lang.Iterable<? super T>>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.core.IsCollectionContaining <T>**
    

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

* * *
    
    
    public class **IsCollectionContaining <T>**extends [TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<java.lang.Iterable<? super T>>

* * *

**Constructor Summary**  
---  
` **[ IsCollectionContaining
](../../../org/hamcrest/core/IsCollectionContaining.html#IsCollectionContaining\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super [ T
](../../../org/hamcrest/core/IsCollectionContaining.html "type parameter in
IsCollectionContaining") > elementMatcher) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/core/IsCollectionContaining.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") <java.lang.Iterable<? super T>> `  
---  
` ` **[ hasItem
](../../../org/hamcrest/core/IsCollectionContaining.html#hasItem\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super T> itemMatcher) `  
Creates a matcher for ` Iterable ` s that only matches when a single pass over
the examined ` Iterable ` yields at least one item that is matched by the
specified ` itemMatcher ` .  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<? super T>> `  
---  
` ` **[ hasItem
](../../../org/hamcrest/core/IsCollectionContaining.html#hasItem\(T\)) ** (T
item) `  
Creates a matcher for ` Iterable ` s that only matches when a single pass over
the examined ` Iterable ` yields at least one item that is equal to the
specified ` item ` .  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Iterable<T>> `  
---  
` ` **[ hasItems
](../../../org/hamcrest/core/IsCollectionContaining.html#hasItems\(org.hamcrest.Matcher...\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <? super T>... itemMatchers) `  
Creates a matcher for ` Iterable ` s that matches when consecutive passes over
the examined ` Iterable ` yield at least one item that is matched by the
co