NoIssue: Add SemanticVersion creations
This commit is contained in:
@@ -27,6 +27,14 @@ public record SemanticVersion(int major, int minor, int patch) {
|
||||
return new SemanticVersion(major, minor, patch);
|
||||
}
|
||||
|
||||
public static SemanticVersion of(int major, int minor) {
|
||||
return of(major, minor, 0);
|
||||
}
|
||||
|
||||
public static SemanticVersion of(int major) {
|
||||
return of(major, 0);
|
||||
}
|
||||
|
||||
public static SemanticVersion of(@NotNull String versionStr) {
|
||||
final String s = versionStr.trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user