package com.hubspot.blazar.base;


import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;

public class Dependency {
  private final String name;
  private final String version;

  @JsonCreator
  public Dependency(@JsonProperty("name") String name,
                    @JsonProperty("version") String version) {
    this.name = name;
    this.version = version;
  }

  public String getName() {
    return name;
  }

  public String getVersion() {
    return version;
  }

  @JsonCreator
  public static Dependency fromString(String fromString) {
    return new Dependency(fromString, "");
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, version);
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    Dependency that = (Dependency) o;
    return Objects.equals(name, that.name) && Objects.equals(version, that.version);
  }

  @Override
  public String toString() {
    return MoreObjects.toStringHelper(this)
        .add("name", name)
        .add("version", version)
        .toString();
  }
}

@@ -267,30 +267,24 @@
 ;%0A  private 
-final 
 String versi
@@ -582,16 +582,92 @@
 n;%0A  %7D%0A%0A
+  public void setVersion(String version) %7B%0A    this.version = version;%0A  %7D%0A%0A
   @JsonC

allow you to set the version of a dependency