@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FacilityState other = (FacilityState) obj; if (facility == null) { if (other.facility != null) return false; } else if (!facility.equals(other.facility)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } RichFacility other = (RichFacility) obj; if(!super.equals(obj)) return false; if (facilityOwners == null) { if (other.facilityOwners != null) { return false; } } else if (!facilityOwners.equals(other.facilityOwners)) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Task other = (Task) obj; if (!service.equals(other.service)) return false; if (!facility.equals(other.facility)) return false; if (id != other.id) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } RichDestination other = (RichDestination) obj; if (facility == null) { if (other.facility != null) { return false; } } else if (!facility.equals(other.facility)) { return false; } if (service == null) { if (other.service != null) { return false; } } else if (!service.equals(other.service)) { return false; } return true; }