@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GeoMatchSetUpdate == false) return false; GeoMatchSetUpdate other = (GeoMatchSetUpdate) obj; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getGeoMatchConstraint() == null ^ this.getGeoMatchConstraint() == null) return false; if (other.getGeoMatchConstraint() != null && other.getGeoMatchConstraint().equals(this.getGeoMatchConstraint()) == false) return false; return true; }