org.springframework.core.convert

## 类 Property

- java.lang.Object
- - org.springframework.core.convert.Property

-     public final class Property
      extends Object

  A description of a JavaBeans Property that allows us to avoid a dependency on `java.beans.PropertyDescriptor`. The `java.beans` package is not available in a number of environments (e.g. Android, Java ME), so this is desirable for portability of Spring's core conversion facility.

  Used to build a `TypeDescriptor` from a property location. The built `TypeDescriptor` can then be used to convert from/to the property type.

  从以下版本开始:
    3.1
  作者:
    Keith Donald, Phillip Webb
  另请参阅:
    `TypeDescriptor.TypeDescriptor(Property)`, `TypeDescriptor.nested(Property, int)`

- - ### 构造器概要

    构造器
    构造器和说明
    `Property(Class<?> objectType, Method readMethod, Method writeMethod)`
    `Property(Class<?> objectType, Method readMethod, Method writeMethod, String name)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)`
    `String` | `getName()` The name of the property: e.g.
    `Class<?>` | `getObjectType()` The object declaring this property, either directly or in a superclass the object extends.
    `Method` | `getReadMethod()` The property getter method: e.g.
    `Class<?>` | `getType()` The property type: e.g.
    `Method` | `getWriteMethod()` The property setter method: e.g.
    `int` | `hashCode()`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### Property

          public Property(Class<?> objectType,
                          @Nullable
                          Method readMethod,
                          @Nullable
                          Method writeMethod)

    - #### Property

          public Property(Class<?> objectType,
                          @Nullable
                          Method readMethod,
                          @Nullable
                          Method writeMethod,
                          @Nullable
                          String name)

  - ### 方法详细资料

    - #### getObjectType

          public Class<?> getObjectType()

      The object declaring this property, either directly or in a superclass the object extends.

    - #### getName

          public String getName()

      The name of the property: e.g. 'foo'

    - #### getType

          public Class<?> getType()

      The property type: e.g. `java.lang.String`

    - #### getReadMethod

          @Nullable
          public Method getReadMethod()

      The property getter method: e.g. `getFoo()`

    - #### getWriteMethod

          @Nullable
          public Method getWriteMethod()

      The property setter method: e.g. `setFoo(String)`

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`