class Palette {

    private final String name;
    private final Color[] colors;

    public Palette(Color[] colors) {
        this(null, colors);
    }

    public Palette(String name, Color[] colors) {
        this.colors = colors;
        this.name = name;
    }

    public Color[] getColors() {
        return colors;
    }

    public String getName() {
        return name;
    }

    public int size() {
        return colors.length;
    }

    @Override
    public int hashCode() {<FILL_FUNCTION_BODY>}

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Palette other = (Palette) obj;
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        return Arrays.deepEquals(this.colors, other.colors);
    }

}

        int hash = 7;
        hash = 29 * hash + (this.name != null ? this.name.hashCode() : 0);
        hash = 29 * hash + Arrays.deepHashCode(this.colors);
        return hash;
    
<no_super_class>