* * *

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

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

Is the value equal to another value, as tested by the `
Object.equals(java.lang.Object) ` invokedMethod?

* * *

**Constructor Summary**  
---  
` **[ IsEqual ](../../../org/hamcrest/core/IsEqual.html#IsEqual\(T\)) ** ( [ T
](../../../org/hamcrest/core/IsEqual.html "type parameter in IsEqual")
equalArg) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/core/IsEqual.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> `  
---  
` ` **[ equalTo ](../../../org/hamcrest/core/IsEqual.html#equalTo\(T\)) ** (T
operand) `  
Creates a matcher that matches when the examined object is logically equal to
the specified ` operand ` , as determined by calling the `
Object.equals(java.lang.Object) ` method on the **examined** object.  
` boolean ` |  ` **[ matches ](../../../org/hamcrest/core/IsEqual.html#matches\(java.lang.Object\)) ** (java.lang.Object actualValue) `   
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 Detail**  
---  
  
###  IsEqual

    
    
    public **IsEqual**([T](../../../org/hamcrest/core/IsEqual.html "type parameter in IsEqual") equalArg)

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

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

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

This method matches against Object, instead of the generic type T. This is
because the caller of the Matcher does not know at runtime what the type is
(because of type erasure with Java generics). It is down to the
implementations to c