Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if ((obj != null) && (obj instanceof BindablePojo)) {
     BindablePojo other = (BindablePojo) obj;
     /*System.out.println(data1 + " == " + other.data1);
     System.out.println(data2 + " == " + other.data2);
     System.out.println(data3 + " == " + other.data3);*/
     boolean res =
         data1.equals(other.data1) && data2.equals(other.data2) && data3.equals(other.data3);
     return res;
   } else return false;
 }
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    Child child = (Child) o;

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

    return true;
  }