示例#1
0
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof Inner)) return false;

    final Inner cidSuper = (Inner) o;

    if (id != null ? !id.equals(cidSuper.id) : cidSuper.id != null) return false;

    return true;
  }
示例#2
0
 public int hashCode() {
   return (id != null ? id.hashCode() : 0);
 }