@Override public boolean equals (Object other) { if (!(other instanceof TextStyle)) return false; TextStyle os = (TextStyle)other; return super.equals(other) && textColor == os.textColor && effect.equals(os.effect) && underlined == os.underlined; } }