class EquivalentValue implements Value {

  private final Value e;

  public EquivalentValue(Value v) {
    this.e = (v instanceof EquivalentValue) ? ((EquivalentValue) v).e : v;
  }

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

  /**
   * compares the encapsulated value with <code>v</code>, using <code>equivTo</code>
   */
  public boolean equivToValue(Value v) {
    return e.equivTo(v);
  }

  /**
   * compares the encapsulated value with <code>v</code>, using <code>equals</code>
   */
  public boolean equalsToValue(Value v) {
    return e.equals(v);
  }

  /**
   * @deprecated
   * @see #getValue()
   */
  @Deprecated
  public Value getDeepestValue() {
    return getValue();
  }

  @Override
  public int hashCode() {
    return e.equivHashCode();
  }

  @Override
  public String toString() {
    return e.toString();
  }

  public Value getValue() {
    return e;
  }

  /*********************************/
  /* implement the Value-interface */
  /*********************************/
  @Override
  public List<ValueBox> getUseBoxes() {
    return e.getUseBoxes();
  }

  @Override
  public Type getType() {
    return e.getType();
  }

  @Override
  public Object clone() {
    return new EquivalentValue((Value) e.clone());
  }

  @Override
  public boolean equivTo(Object o) {
    return e.equivTo(o);
  }

  @Override
  public int equivHashCode() {
    return e.equivHashCode();
  }

  @Override
  public void apply(Switch sw) {
    e.apply(sw);
  }

  @Override
  public void toString(UnitPrinter up) {
    e.toString(up);
  }
}

    return e.equivTo((o instanceof EquivalentValue) ? ((EquivalentValue) o).e : o);
  
<no_super_class>