跨平台控件查询机制之扩展iQuery(3)

发表于:2012-09-12来源:不祥作者:知平软件点击数: 标签:iQuery
return value; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final IProperty other = (IProperty) obj; if (this.n

  return value;

  }

  @Override

  public boolean equals(Object obj) {

  if (obj == null) {

  return false;

  }

  if (getClass() != obj.getClass()) {

  return false;

  }

  final IProperty other = (IProperty) obj;

  if (this.name != other.getName()

  && (this.name == null || !this.name.equals(other.getName()))) {

  return false;

  }

  return !(this.value != other.getValue() && (this.value == null || !this.value

  .equals(other.getValue())));

  }

  @Override

  public int hashCode() {

  int hash = 5;

  hash = 61 * hash + (this.name != null ? this.name.hashCode() : 0);

  hash = 61 * hash + (this.value != null ? this.value.hashCode() : 0);

  return hash;

  }

  }

原文转自:http://www.ltesting.net