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

        final ColorCmy colorCmy = (ColorCmy) o;
        if (Double.compare(colorCmy.c, c) != 0) {
            return false;
        }
        if (Double.compare(colorCmy.m, m) != 0) {
            return false;
        }
        if (Double.compare(colorCmy.y, y) != 0) {
            return false;
        }

        return true;
    }
Constructs a new instance.

@param c cyan.
@param m magenta.
@param y yellow.
src/main/java/org/apache/commons/imaging/color/ColorCmy.java