package org.isisaddons.wicket.svg.fixture.dom;

public class Color {
    
    final private String color;
    
    final private String label;
    
    public Color(String color, String label) {
        this.color = color;
        this.label = label;
    }

    public String getColor() {
        return color;
    }
    
    public String getLabel() {
        return label;
    }

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

        Color color1 = (Color) o;

        if (!color.equals(color1.color)) {
            return false;
        }
        if (!label.equals(color1.label)) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        int result = color.hashCode();
        result = 31 * result + label.hashCode();
        return result;
    }
}

@@ -41,16 +41,56 @@
 e.dom;%0A%0A
+import com.google.common.base.Objects;%0A%0A
 public c
@@ -467,377 +467,57 @@
 ct o
-) %7B%0A        if (this == o) %7B%0A            return true;%0A        %7D%0A        if (o == null %7C%7C getClass() != o.getClass()) %7B%0A            return false;%0A        %7D%0A%0A        Color color1 = (Color) o;%0A%0A        if (!color.equals(color1.color)) %7B%0A            return false;%0A        %7D%0A        if (!label.equals(color1.label)) %7B%0A            return false;%0A        %7D%0A%0A        return true
+ther) %7B%0A        return Objects.equal(this, other)
 ;%0A  

Use Guava Objects for #equals()