@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Morte other = (Morte) obj; if (arma == null) { if (other.arma != null) return false; } else if (!arma.equals(other.arma)) return false; if (data == null) { if (other.data != null) return false; } else if (!data.equals(other.data)) return false; if (matador == null) { if (other.matador != null) return false; } else if (!matador.equals(other.matador)) return false; if (morto == null) { if (other.morto != null) return false; } else if (!morto.equals(other.morto)) return false; return true; }