* * *

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

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

Decorates another Matcher, retaining the behaviour but allowing tests to be
slightly more expressive. For example: assertThat(cheese, equalTo(smelly)) vs.
assertThat(cheese, is(equalTo(smelly)))

* * *

**Constructor Summary**  
---  
` **[ Is ](../../../org/hamcrest/core/Is.html#Is\(org.hamcrest.Matcher\)) ** (
[ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <
[ T ](../../../org/hamcrest/core/Is.html "type parameter in Is") > matcher) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatch ](../../../org/hamcrest/core/Is.html#describeMismatch\(java.lang.Object, org.hamcrest.Description\)) ** (java.lang.Object item, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Generate a description of why the matcher has not accepted the item.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/core/Is.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") <T> `  
---  
` ` **[ is ](../../../org/hamcrest/core/Is.html#is\(java.lang.Class\)) **
(java.lang.Class<T> type) `  
**Deprecated.** _use isA(Class type) instead.  _  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ is ](../../../org/hamcrest/core/Is.html#is\(org.hamcrest.Matcher\)) **
( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<T> matcher) `  
Decorates another Matcher, retaining its behaviour, but allowing tests to be
slightly more expressive.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ is ](../../../org/hamcrest/core/Is.html#is\(T\)) ** (T value) `  
A shortcut to the frequently used ` is(equalTo(x)) ` .  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ isA ](../../../org/hamcrest/core/Is.html#isA\(java.lang.Class\)) **
(java.lang.Class<T> type) `  
A shortcut to the frequently used ` is(instanceOf(SomeClass.class)) ` .  
` boolean ` |  ` **[ matches ](../../../org/hamcrest/core/Is.html#matches\(java.lang.Object\)) ** (java.lang.Object arg) `   
Evaluates the matcher for argument  item  .  
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.ham