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

        Route route = (Route) o;

        if (Double.compare(route.coeffDate, coeffDate) != 0) return false;
        if (Double.compare(route.coeffSeats, coeffSeats) != 0) return false;
        if (id != route.id) return false;
        if (name != null ? !name.equals(route.name) : route.name != null) return false;

        return true;
    }