class InjectedSentence {
  
  private final String language;
  private final String text;

  public InjectedSentence(String language, String text) {
    this.language = language;
    this.text = text;
  }

  public String getLanguage() {
    return language;
  }

  public String getText() {
    return text.trim();
  }

  @Override
  public String toString() {
    return "Sentence: " +
            "language='" + language + '\'' +
            ", text='" + text + '\'';
  }

  @Override
  public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

  @Override
  public int hashCode() {
    int result = getLanguage().hashCode();
    result = 31 * result + getText().hashCode();
    return result;
  }
}

    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    InjectedSentence that = (InjectedSentence) o;

    if (!getLanguage().equals(that.getLanguage())) return false;
    if (!getText().equals(that.getText())) return false;

    return true;
  
<no_super_class>