| 236 | } |
| 237 | |
| 238 | @Override |
| 239 | public boolean equals(Object obj) { |
| 240 | if (this == obj) |
| 241 | return true; |
| 242 | if (obj == null) |
| 243 | return false; |
| 244 | if (getClass() != obj.getClass()) |
| 245 | return false; |
| 246 | CPTEC other = (CPTEC) obj; |
| 247 | return Objects.equals(atualizadoEm, other.atualizadoEm) && Objects.equals(cidade, other.cidade) |
| 248 | && Arrays.equals(clima, other.clima) && Objects.equals(codigoIcao, other.codigoIcao) |
| 249 | && Objects.equals(condicao, other.condicao) && Objects.equals(condicaoDesc, other.condicaoDesc) |
| 250 | && Objects.equals(direcaoVento, other.direcaoVento) && Objects.equals(estado, other.estado) |
| 251 | && Objects.equals(id, other.id) && Objects.equals(nome, other.nome) && Arrays.equals(ondas, other.ondas) |
| 252 | && Objects.equals(pressaoAtmosferica, other.pressaoAtmosferica) && Objects.equals(temp, other.temp) |
| 253 | && Objects.equals(umidade, other.umidade) && Objects.equals(vento, other.vento) |
| 254 | && Objects.equals(visibilidade, other.visibilidade); |
| 255 | } |
| 256 | |
| 257 | @Override |
| 258 | public String toString() { |