@Override
  public int hashCode() {
    int result = major;
    result = 31 * result + minor;
    result = 31 * result + maint;
    result = 31 * result + hotfix;
    result = 31 * result + build;
    return result;
  }
Method validate mpack version not to be
empty or null. Also check if passed version
has valid format.
@param version string
@return Matcher for passed version
@throws IllegalArgumentException() if version empty/null/not valid
ambari-server/src/main/java/org/apache/ambari/server/utils/MpackVersion.java