* * *

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

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

Calculates the logical negation of a matcher.

* * *

**Constructor Summary**  
---  
` **[ IsNot
](../../../org/hamcrest/core/IsNot.html#IsNot\(org.hamcrest.Matcher\)) ** ( [
Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") < [
T ](../../../org/hamcrest/core/IsNot.html "type parameter in IsNot") >
matcher) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/core/IsNot.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` boolean ` |  ` **[ matches ](../../../org/hamcrest/core/IsNot.html#matches\(java.lang.Object\)) ** (java.lang.Object arg) `   
Evaluates the matcher for argument  item  .  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ not
](../../../org/hamcrest/core/IsNot.html#not\(org.hamcrest.Matcher\)) ** ( [
Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T>
matcher) `  
Creates a matcher that wraps an existing matcher, but inverts the logic by
which it will match.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ not ](../../../org/hamcrest/core/IsNot.html#not\(T\)) ** (T value) `  
A shortcut to the frequently used ` not(equalTo(x)) ` .  
**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 Detail**  
---  
  
###  IsNot

    
    
    public **IsNot**([Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<[T](../../../org/hamcrest/core/IsNot.html "type parameter in IsNot")> matcher)

**Method Detail**  
---  
  
###  matches

    
    
    public boolean **matches**(java.lang.Object arg)

     **Description copied from interface:` [ Matcher ](../../../org/hamcrest/Matcher.html#matches\(java.lang.Object\)) ` **
     Evaluates