boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MyRenderer renderer = (MyRenderer)o; return myColorText.equals(renderer.myColorText) && myLiteral.equals(renderer.myLiteral); }