SamePropertyValuesAs.PropertyMatcher (JavaHamcrest 2.0.0.0 API)
Date: 2015-01-18

org.hamcrest.beans

## Class SamePropertyValuesAs.PropertyMatcher

- java.lang.Object
- - org.hamcrest.BaseMatcher<T>
  - - org.hamcrest.DiagnosingMatcher<java.lang.Object>
    - - org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher

- All Implemented Interfaces:
    Matcher<java.lang.Object>, SelfDescribing
  Enclosing class:
    SamePropertyValuesAs<T>

      public static class SamePropertyValuesAs.PropertyMatcher
      extends DiagnosingMatcher<java.lang.Object>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PropertyMatcher(java.beans.PropertyDescriptor descriptor, java.lang.Object expectedObject)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `describeTo(Description description)` Generates a description of the object.
    `boolean` | `matches(java.lang.Object actual, Description mismatch)`

    - ### Methods inherited from class org.hamcrest.DiagnosingMatcher

      `describeMismatch, matches`

    - ### Methods inherited from class org.hamcrest.BaseMatcher

      `_dont_implement_Matcher___instead_extend_BaseMatcher_, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PropertyMatcher

          public PropertyMatcher(java.beans.PropertyDescriptor descriptor,
                                 java.lang.Object expectedObject)

  - ### Method Detail

    - #### matches

          public boolean matches(java.lang.Object actual,
                                 Description mismatch)

      Specified by:
        `matches` in class `DiagnosingMatcher<java.lang.Object>`

    - #### describeTo

          public void describeTo(Description description)

      Description copied from interface: `SelfDescribing`
      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.