@Override
    public boolean equals(Object o) {
        if (!(o instanceof ColorRGBA)) {
            return false;
        }

        if (this == o) {
            return true;
        }

        ColorRGBA comp = (ColorRGBA) o;
        if (Float.compare(r, comp.r) != 0) {
            return false;
        }
        if (Float.compare(g, comp.g) != 0) {
            return false;
        }
        if (Float.compare(b, comp.b) != 0) {
            return false;
        }
        if (Float.compare(a, comp.a) != 0) {
            return false;
        }
        return true;
    }
<code>equals</code> returns true if this <code>ColorRGBA</code> is logically equivalent
to a given color. That is, if all the components of the two colors are the same.
False is returned otherwise.

@param o The object to compare against.
@return true if the colors are equal, false otherwise.
jme3-core/src/main/java/com/jme3/math/ColorRGBA.java