@Override
  public int hashCode() {
    int hash = 7;
    hash = 97 * hash + (this.bold ? 1 : 0);
    hash = 97 * hash + (this.color != null ? this.color.hashCode() : 0);
    hash = 97 * hash + (this.background != null ? this.background.hashCode() : 0);
    hash = 97 * hash + (this.underline ? 1 : 0);
    hash = 97 * hash + (this.italic ? 1 : 0);
    return hash;
  }