* * *

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

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

* * *

**Constructor Summary**  
---  
` **[ IsIn
](../../../org/hamcrest/collection/IsIn.html#IsIn\(java.util.Collection\)) **
(java.util.Collection< [ T ](../../../org/hamcrest/collection/IsIn.html "type
parameter in IsIn") > collection) `  
  
` **[ IsIn ](../../../org/hamcrest/collection/IsIn.html#IsIn\(T\[\]\)) ** ( [
T ](../../../org/hamcrest/collection/IsIn.html "type parameter in IsIn") []
elements) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/collection/IsIn.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") buffer) `   
Generates a description of the object.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ isIn
](../../../org/hamcrest/collection/IsIn.html#isIn\(java.util.Collection\)) **
(java.util.Collection<T> collection) `  
Creates a matcher that matches when the examined object is found within the
specified collection.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ isIn ](../../../org/hamcrest/collection/IsIn.html#isIn\(T\[\]\)) **
(T[] elements) `  
Creates a matcher that matches when the examined object is found within the
specified array.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ isOneOf ](../../../org/hamcrest/collection/IsIn.html#isOneOf\(T...\))
** (T... elements) `  
Creates a matcher that matches when the examined object is equal to one of the
specified elements.  
` boolean ` |  ` **[ matches ](../../../org/hamcrest/collection/IsIn.html#matches\(java.lang.Object\)) ** (java.lang.Object o) `   
Evaluates the matcher for argument  item  .  
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **  
---  
` [ _dont_implement_Matcher___instead_extend_BaseMatcher_
](../../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\))
, [ describeMismatch
](../../../org/hamcrest/BaseMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ toString
](../../../org/hamcrest/BaseMatcher.html#toString\(\)) `  
**Methods inherited from class java.lang.Object**  
---  
` clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
wait `  
  
**Constructor D