* * *

|  [ **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   
  
* * *

##  org.hamcrest.beans  
Class SamePropertyValuesAs<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.TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<T>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.beans.SamePropertyValuesAs <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 **SamePropertyValuesAs <T>**extends [TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<T>

* * *

**Nested Class Summary**  
---  
` static class ` |  ` **[ SamePropertyValuesAs.PropertyMatcher ](../../../org/hamcrest/beans/SamePropertyValuesAs.PropertyMatcher.html "class in org.hamcrest.beans") ** `   
  
**Constructor Summary**  
---  
` **[ SamePropertyValuesAs
](../../../org/hamcrest/beans/SamePropertyValuesAs.html#SamePropertyValuesAs\(T\))
** ( [ T ](../../../org/hamcrest/beans/SamePropertyValuesAs.html "type
parameter in SamePropertyValuesAs") expectedBean) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/beans/SamePropertyValuesAs.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/beans/SamePropertyValuesAs.html#matchesSafely\(T, org.hamcrest.Description\)) ** ( [ T ](../../../org/hamcrest/beans/SamePropertyValuesAs.html "type parameter in SamePropertyValuesAs") bean, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatch) `   
Subclasses should implement this.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T> `  
---  
` ` **[ samePropertyValuesAs
](../../../org/hamcrest/beans/SamePropertyValuesAs.html#samePropertyValuesAs\(T\))
** (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.  
**Methods inherited from class org.hamcrest.[ TypeSafeDiagnosingMatcher
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in
org.hamcrest") **  
---  
` [ describeMismatch
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ matches
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html#matches\(java.lang.Object\))
`  
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **  
---  
` [ _dont_implement_Matcher___instead_extend_BaseMatcher_
](../../../org/hamcrest/B