class AnnotationDoubleElem extends AnnotationElem {

  private final double value;

  public AnnotationDoubleElem(double v, String name) {
    this(v, 'D', name);
  }

  public AnnotationDoubleElem(double v, char kind, String name) {
    super(kind, name);
    this.value = v;
  }

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

  public double getValue() {
    return value;
  }

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

  @Override
  public int hashCode() {<FILL_FUNCTION_BODY>}

  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (!super.equals(obj) || (this.getClass() != obj.getClass())) {
      return false;
    }
    AnnotationDoubleElem other = (AnnotationDoubleElem) obj;
    return Double.doubleToLongBits(this.value) == Double.doubleToLongBits(other.value);
  }
}

    final int prime = 31;
    int result = super.hashCode();
    long temp = Double.doubleToLongBits(value);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    return result;
  
<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