public int compareTo()

in nuget-common/src/jetbrains/buildServer/nuget/common/version/Version.java [97:105]


  public int compareTo( @NotNull final Version other ){
    if (equals(other)) return 0;
    if (this.myMajor < other.myMajor) return -1;
    else if (this.myMajor == other.myMajor)
      if (this.myMinor < other.myMinor) return -1;
      else if (this.myMinor == other.myMinor) if (this.myPatch < other.myPatch) return -1;
      else if (this.myPatch == other.myPatch && this.myBuild < other.myBuild) return -1;
    return 1;
  }