class AnnotationIntElem extends AnnotationElem {

  private final int value;

  /**
   * Annotation int element
   * 
   * @param v
   *          value of type int
   * @param kind
   *          I: int; B: byte; Z: boolean; C: char; S: short;
   * @param name
   */
  public AnnotationIntElem(int v, char kind, String name) {
    super(kind, name);
    this.value = v;
  }

  public AnnotationIntElem(int v, String name) {
    this(v, 'I', name);
  }

  public AnnotationIntElem(Byte v, String name) {
    this(v, 'B', name);
  }

  public AnnotationIntElem(Character v, String name) {
    this(v, 'C', name);
  }

  public AnnotationIntElem(Short v, String name) {
    this(v, 'S', name);
  }

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

  public int getValue() {
    return value;
  }

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

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = super.hashCode();
    result = prime * result + value;
    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;
    }
    AnnotationIntElem other = (AnnotationIntElem) obj;
    return this.value == other.value;
  
<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