/** * Like equals(), but ignores {@linkplain BuildType}. * * @param versionObject * @return */ public boolean identicalTo(Version versionObject) { boolean ret = false; if (null == versionObject) ret = false; else { if ((this.getProduct() == versionObject.getProduct()) && (this.getMajor() == versionObject.getMajor()) && (this.getMinor() == versionObject.getMinor())) ret = true; else ret = false; } return ret; }
public static String verstionShortString(Version version) { return version.getProduct() + "." + version.getMajor() + "." + version.getMinor(); }