示例#1
0
  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;
  }
示例#2
0
  @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;
  }