public boolean equalsIgnoreCharacter(TerminalString that) { if (style != that.style) return false; if (ignoreRendering != that.ignoreRendering) return false; if (!color.equals(that.color)) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TerminalString)) return false; TerminalString that = (TerminalString) o; if (ignoreRendering) { return characters.equals(that.characters); } if (!characters.equals(that.characters)) return false; if (!color.equals(that.color)) return false; if (style != that.style) return false; return true; }