class SimpleInputSentence {

  private final String text;
  private final Language lang;
  
  SimpleInputSentence(String text, Language lang) {
    this.text = Objects.requireNonNull(text);
    this.lang = Objects.requireNonNull(lang);
  }

  /** @since 4.1 */
  public String getText() {
    return text;
  }

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

  @Override
  public int hashCode() {
    return Objects.hash(text, lang);
  }

  @Override
  public String toString() {
    return text;
  }
}

    if (o == null) return false;
    if (o == this) return true;
    if (o.getClass() != getClass()) return false;
    SimpleInputSentence other = (SimpleInputSentence) o;
    return Objects.equals(text, other.text) && 
           Objects.equals(lang, other.lang);
  
<no_super_class>