@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Trip)) return false;

        Trip trip = (Trip) o;

        if (routes != null ? !routes.equals(trip.routes) : trip.routes != null) return false;
        if (vehicle != null ? !vehicle.equals(trip.vehicle) : trip.vehicle != null) return false;

        return true;
    }