コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 public static String verstionShortString(Version version) {
   return version.getProduct() + "." + version.getMajor() + "." + version.getMinor();
 }