/*
   * @see java.beans.IndexedPropertyDescriptor#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (obj != null && obj instanceof IndexedPropertyDescriptor) {
      IndexedPropertyDescriptor other = (IndexedPropertyDescriptor) obj;
      if (!compareMethods(getIndexedReadMethod(), other.getIndexedReadMethod())) {
        return false;
      }

      if (!compareMethods(getIndexedWriteMethod(), other.getIndexedWriteMethod())) {
        return false;
      }

      if (getIndexedPropertyType() != other.getIndexedPropertyType()) {
        return false;
      }
      return PropertyDescriptorUtils.equals(this, obj);
    }
    return false;
  }
 @Override
 public boolean equals(Object obj) {
   return PropertyDescriptorUtils.equals(this, obj);
 }