public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; EEABVolumeSaida other = (EEABVolumeSaida) obj; if (codigo == null) { if (other.codigo != null) return false; } else if (!codigo.equals(other.codigo)) return false; if (eeabVolume == null) { if (other.eeabVolume != null) return false; } else if (!eeabVolume.equals(other.eeabVolume)) return false; if (medidorSaida == null) { if (other.medidorSaida != null) return false; } else if (!medidorSaida.equals(other.medidorSaida)) return false; if (tipomedicao == null) { if (other.tipomedicao != null) return false; } else if (!tipomedicao.equals(other.tipomedicao)) return false; if (valorMedicaoSaida == null) { if (other.valorMedicaoSaida != null) return false; } else if (!valorMedicaoSaida.equals(other.valorMedicaoSaida)) return false; if (valorMedicaoSaidaAux == null) { if (other.valorMedicaoSaidaAux != null) return false; } else if (!valorMedicaoSaidaAux.equals(other.valorMedicaoSaidaAux)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((codigo == null) ? 0 : codigo.hashCode()); result = prime * result + ((dataInstalacao == null) ? 0 : dataInstalacao.hashCode()); result = prime * result + ((eeat == null) ? 0 : eeat.hashCode()); result = prime * result + ((medidorSaida == null) ? 0 : medidorSaida.hashCode()); result = prime * result + ((tag == null) ? 0 : tag.hashCode()); return result; }
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((codigo == null) ? 0 : codigo.hashCode()); result = prime * result + ((eeabVolume == null) ? 0 : eeabVolume.hashCode()); result = prime * result + ((medidorSaida == null) ? 0 : medidorSaida.hashCode()); result = prime * result + ((tipomedicao == null) ? 0 : tipomedicao.hashCode()); result = prime * result + ((valorMedicaoSaida == null) ? 0 : valorMedicaoSaida.hashCode()); result = prime * result + ((valorMedicaoSaidaAux == null) ? 0 : valorMedicaoSaidaAux.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; EEATMedidor other = (EEATMedidor) obj; if (codigo == null) { if (other.codigo != null) return false; } else if (!codigo.equals(other.codigo)) return false; if (dataInstalacao == null) { if (other.dataInstalacao != null) return false; } else if (!dataInstalacao.equals(other.dataInstalacao)) return false; if (eeat == null) { if (other.eeat != null) return false; } else if (!eeat.equals(other.eeat)) return false; if (medidorSaida == null) { if (other.medidorSaida != null) return false; } else if (!medidorSaida.equals(other.medidorSaida)) return false; if (tag == null) { if (other.tag != null) return false; } else if (!tag.equals(other.tag)) return false; return true; }