boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RGBColor color = (RGBColor)o; if (myRed != color.myRed) return false; if (myGreen != color.myGreen) return false; if (myBlue != color.myBlue) return false; return true; }