Beispiel #1
0
 public boolean equals(Object obj) {
   if (obj instanceof Value) {
     Value src = (Value) obj;
     if (src.getValue() == null) {
       if (getValue() != null) return false;
     } else {
       if (!src.getValue().equals(getValue())) return false;
     }
     if (src.getConcat() == null) {
       if (getConcat() != null) return false;
     } else {
       if (!src.getConcat().equals(getConcat())) return false;
     }
     return true;
   } else {
     return super.equals(obj);
   }
 }