public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo, String versionComment, Map<String, Object> versionProperties) { revision = version.getRevision(); this.major = version.getMajor(); this.minor = version.getMinor(); this.versionInfo = versionInfo; this.versionComment = versionComment; this.versionProperties = versionProperties; }
public CommonVersionImpl(CommonVersion version) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); }
public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo, String versionComment, Map<String, Object> versionProperties) { revision = version.getRevision(); this.major = version.getMajor(); this.minor = version.getMinor(); this.versionInfo = versionInfo; this.versionComment = versionComment; this.versionProperties = versionProperties; }
public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); this.versionInfo = versionInfo; }
public CommonVersionImpl(CommonVersion version) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); }
public RepositoryProjectVersionImpl(CommonVersion version, VersionInfo versionInfo) { major = version.getMajor(); minor = version.getMinor(); revision = version.getRevision(); this.versionInfo = versionInfo; }
public int compareTo(CommonVersion o) { if (revision.equals(o.getRevision())) { return 0; } /*Revision with #0 always should be at last place*/ if (revision.equals("0")) { return -1; } if (major != o.getMajor()) { return major < o.getMajor() ? -1 : 1; } if (minor != o.getMinor()) { return minor < o.getMinor() ? -1 : 1; } if (!revision.equals(o.getRevision())) { return revision.compareTo(o.getRevision()); } return 0; }
public int compareTo(CommonVersion o) { if (revision.equals(o.getRevision())) { return 0; } /*Revision with #0 always should be at last place*/ if (revision.equals("0")) { return -1; } if (major != o.getMajor()) { return major < o.getMajor() ? -1 : 1; } if (minor != o.getMinor()) { return minor < o.getMinor() ? -1 : 1; } if (!revision.equals(o.getRevision())) { return revision.compareTo(o.getRevision()); } return 0; }
public int compareTo(CommonVersion o) { /*Version with the same Revisions always equal*/ if (revision.equals(o.getRevision())) { return 0; } /*Revision with num 0 always should be at last place*/ if (revision.equals("0")) { return -1; } else if (o.getRevision().equals("0")) { return 1; } if (major != o.getMajor()) { return major < o.getMajor() ? -1 : 1; } if (minor != o.getMinor()) { return minor < o.getMinor() ? -1 : 1; } return compareRevision(o); }
public int compareTo(CommonVersion o) { /*Version with the same Revisions always equal*/ if (revision.equals(o.getRevision())) { return 0; } /*Revision with num 0 always should be at last place*/ if (revision.equals("0")) { return -1; } else if (o.getRevision().equals("0")) { return 1; } if (major != o.getMajor()) { return major < o.getMajor() ? -1 : 1; } if (minor != o.getMinor()) { return minor < o.getMinor() ? -1 : 1; } return compareRevision(o); }