class UntypedLongOrDoubleConstant extends UntypedConstant {

  /**
  * 
  */
  private static final long serialVersionUID = -3970057807907204253L;
  public final long value;

  private UntypedLongOrDoubleConstant(long value) {
    this.value = value;
  }

  public static UntypedLongOrDoubleConstant v(long value) {
    return new UntypedLongOrDoubleConstant(value);
  }

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

  /** Returns a hash code for this DoubleConstant object. */
  @Override
  public int hashCode() {
    return (int) (value ^ (value >>> 32));
  }

  public DoubleConstant toDoubleConstant() {
    return DoubleConstant.v(Double.longBitsToDouble(value));
  }

  public LongConstant toLongConstant() {
    return LongConstant.v(value);
  }

  @Override
  public Value defineType(Type t) {
    if (t instanceof DoubleType) {
      return this.toDoubleConstant();
    } else if (t instanceof LongType) {
      return this.toLongConstant();
    } else {
      throw new RuntimeException("error: expected Double type or Long type. Got " + t);
    }
  }
}

    return c instanceof UntypedLongOrDoubleConstant && ((UntypedLongOrDoubleConstant) c).value == this.value;
  
<methods>public non-sealed void <init>() ,public void apply(soot.util.Switch) ,public abstract soot.Value defineType(soot.Type) ,public soot.Type getType() <variables>private static final long serialVersionUID