mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-17 14:35:01 +00:00
add version parsing to API
This commit is contained in:
2 files changed
+35
-21
No files matched your search
@@ -21,6 +21,8 @@
|
||||
*/
|
||||
package com.falsepattern.lib.dependencies;
|
||||
|
||||
import com.falsepattern.lib.internal.impl.dependencies.DependencyLoaderImpl;
|
||||
|
||||
public abstract class Version implements Comparable<Version> {
|
||||
protected Version() {
|
||||
}
|
||||
@@ -36,4 +38,12 @@ public abstract class Version implements Comparable<Version> {
|
||||
public boolean equals(Version other) {
|
||||
return compareTo(other) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @since 1.7.0
|
||||
*/
|
||||
public static Version parse(String versionString) {
|
||||
return DependencyLoaderImpl.parseVersion(versionString);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user