cafe-endpointdsl/src/main/java/org/apache/camel/example/cafe/Drink.java [21:64]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class Drink {

    private boolean iced;

    private int shots;

    private DrinkType drinkType;

    private int orderNumber;

    public Drink(int orderNumber, DrinkType drinkType, boolean hot, int shots) {
        this.orderNumber = orderNumber;
        this.drinkType = drinkType;
        this.iced = hot;
        this.shots = shots;
    }

    public int getOrderNumber() {
        return orderNumber;
    }

    @Override
    public String toString() {
        return (iced ? "Iced" : "Hot") + " " + drinkType.toString() + ", " + shots + " shots.";
    }
    
    @Override
    public boolean equals(Object o) {
        if (o instanceof Drink) {
            Drink that = (Drink)o;
            return ObjectHelper.equal(this.drinkType, that.drinkType) 
                && ObjectHelper.equal(this.orderNumber, that.orderNumber)
                && ObjectHelper.equal(this.iced, that.iced)
                && ObjectHelper.equal(this.shots, that.shots);                 
        }
        return false;
    }
  
    @Override
    public int hashCode() {
        if (iced) {
            return drinkType.hashCode() + orderNumber * 1000 + shots * 100;
        } else {
            return drinkType.hashCode() + orderNumber * 1000 + shots * 100 + 5;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cafe/src/main/java/org/apache/camel/example/cafe/Drink.java [21:64]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class Drink {

    private boolean iced;

    private int shots;

    private DrinkType drinkType;

    private int orderNumber;

    public Drink(int orderNumber, DrinkType drinkType, boolean hot, int shots) {
        this.orderNumber = orderNumber;
        this.drinkType = drinkType;
        this.iced = hot;
        this.shots = shots;
    }

    public int getOrderNumber() {
        return orderNumber;
    }

    @Override
    public String toString() {
        return (iced ? "Iced" : "Hot") + " " + drinkType.toString() + ", " + shots + " shots.";
    }
    
    @Override
    public boolean equals(Object o) {
        if (o instanceof Drink) {
            Drink that = (Drink)o;
            return ObjectHelper.equal(this.drinkType, that.drinkType) 
                && ObjectHelper.equal(this.orderNumber, that.orderNumber)
                && ObjectHelper.equal(this.iced, that.iced)
                && ObjectHelper.equal(this.shots, that.shots);                 
        }
        return false;
    }
  
    @Override
    public int hashCode() {
        if (iced) {
            return drinkType.hashCode() + orderNumber * 1000 + shots * 100;
        } else {
            return drinkType.hashCode() + orderNumber * 1000 + shots * 100 + 5;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



