Пример #1
0
  /*
   * @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;
  }
Пример #2
0
 @Override
 public boolean equals(Object obj) {
   return PropertyDescriptorUtils.equals(this, obj);
 }