hashCode

@Override
public int hashCode() {
        int hash = 7;
        hash = 31 * hash + Objects.hashCode(this.nombre);
        hash = 31 * hash + this.genero;
        hash = 31 * hash + this.edad;
        hash = 31 * hash + Objects.hashCode(this.direccion);
        return hash;
}