public Metric<G> merge(final Metric with) {
    this.description = with.description;
    this.domain = with.domain;
    this.enabled = with.enabled;
    this.qualitative = with.qualitative;
    this.worstValue = with.worstValue;
    this.bestValue = with.bestValue;
    this.optimizedBestValue = with.optimizedBestValue;
    this.direction = with.direction;
    this.key = with.key;
    this.type = with.type;
    this.name = with.name;
    this.userManaged = with.userManaged;
    this.hidden = with.hidden;
    this.deleteHistoricalData = with.deleteHistoricalData;
    return this;
  }
public Metric < G > merge ( final Metric with ) { this . description = with . description ; this . domain = with . domain ; this . enabled = with . enabled ; this . qualitative = with . qualitative ; this . worstValue = with . worstValue ; this . bestValue = with . bestValue ; this . optimizedBestValue = with . optimizedBestValue ; this . direction = with . direction ; this . key = with . key ; this . type = with . type ; this . name = with . name ; this . userManaged = with . userManaged ; this . hidden = with . hidden ; this . deleteHistoricalData = with . deleteHistoricalData ; return this ; }
Merge with fields from other metric. All fields are copied, except the id.

@return this