class AnnotationStringElem extends AnnotationElem {

  private final String value;

  public AnnotationStringElem(String s, String name) {
    this(s, 's', name);
  }

  public AnnotationStringElem(String s, char kind, String name) {
    super(kind, name);
    this.value = s;
  }

  @Override
  public String toString() {
    return super.toString() + " value: " + value;
  }

  public String getValue() {
    return value;
  }

  @Override
  public void apply(Switch sw) {
    ((IAnnotationElemTypeSwitch) sw).caseAnnotationStringElem(this);
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = super.hashCode();
    result = prime * result + ((value == null) ? 0 : value.hashCode());
    return result;
  }

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

    if (this == obj) {
      return true;
    }
    if (!super.equals(obj) || (this.getClass() != obj.getClass())) {
      return false;
    }
    AnnotationStringElem other = (AnnotationStringElem) obj;
    if (this.value == null) {
      if (other.value != null) {
        return false;
      }
    } else if (!this.value.equals(other.value)) {
      return false;
    }
    return true;
  
<methods>public void <init>(char, java.lang.String) ,public boolean equals(java.lang.Object) ,public char getKind() ,public java.lang.String getName() ,public int hashCode() ,public void setName(java.lang.String) ,public java.lang.String toString() <variables>private final non-sealed char kind,private java.lang.String name