@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (hashCode() == o.hashCode()) return true;
        Asteroid asteroid = (Asteroid) o;

        if (dangerousToMankind != asteroid.dangerousToMankind) return false;
        if (target != null ? !target.equals(asteroid.target) : asteroid.target != null) return false;

        return true;
    }