String () { String result; if (myFullVersionFormat != null) { result = MessageFormat.format(myFullVersionFormat, myMajorVersion, myMinorVersion, myMicroVersion, myPatchVersion); } else { result = requireNonNullElse(myMajorVersion) + '.' + requireNonNullElse(myMinorVersion); } if (myVersionSuffix != null && !myVersionSuffix.isEmpty()) { result += " " + myVersionSuffix; } return result; }