@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CarId carId = (CarId) o;
        return !(color != null ? !color.equals(carId.color) : carId.color != null) && name.equals(carId.name);
    }