aseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\))
, [ 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**  
---  
  
###  SamePropertyValuesAs

    
    
    public **SamePropertyValuesAs**([T](../../../org/hamcrest/beans/SamePropertyValuesAs.html "type parameter in SamePropertyValuesAs") expectedBean)

**Method Detail**  
---  
  
###  matchesSafely

    
    
    public boolean **matchesSafely**([T](../../../org/hamcrest/beans/SamePropertyValuesAs.html "type parameter in SamePropertyValuesAs") bean,
                                 [Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatch)

     **Description copied from class:` [ TypeSafeDiagnosingMatcher ](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html#matchesSafely\(T, org.hamcrest.Description\)) ` **
     Subclasses should implement this. The item will already have been checked for the specific type and will never be null. 

    

**Specified by:**      ` [ matchesSafely
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html#matchesSafely\(T,
org.hamcrest.Description\)) ` in class ` [ TypeSafeDiagnosingMatcher
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in
org.hamcrest") < [ T ](../../../org/hamcrest/beans/SamePropertyValuesAs.html
"type parameter in SamePropertyValuesAs") > `

    

* * *

###  describeTo

    
    
    public void **describeTo**([Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") description)

     **Description copied from interface:` [ SelfDescribing ](../../../org/hamcrest/SelfDescribing.html#describeTo\(org.hamcrest.Description\)) ` **
     Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately. 

    

**Parameters:**      ` description ` \- The description to be built or
appended to.

* * *

###  samePropertyValuesAs

    
    
    public static <T> [Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T> **samePropertyValuesAs**(T expectedBean)

     Creates a matcher that matches when the examined object has values for all of its JavaBean properties that are equal to the corresponding values of the specified bean. 

For example:

    
    
    assertThat(myBean, samePropertyValuesAs(myExpectedBean))

    

**Parameters:**      ` expectedBean ` \- the bean against which examined beans
are compared

* * *

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