class Liquid {

    @Override
    public int hashCode() {
        int result = 17; /* prime number! */
        result = 31 * result + (int) (amount * 100); /* *100 to get a different hashcode if the amount differs only
                                                        after the decimal point */
        result = 31 * result + (int) (temperature * 100);
        result = 31 * result + color.hashCode();
        return result;
    }

    public  Liquid(float amount, float temperature, Color color);

}