public class SemanticVersion extends Object implements Comparable<SemanticVersion>
| Constructor and Description | 
|---|
| SemanticVersion(String version)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(SemanticVersion o) | 
| String | getVersion() | 
| static boolean | isAtLeast(String version,
         String requiredVersion)Check whether the version is at least the given version. | 
| static boolean | isAtLeastMajorMinor(String version,
                   int majorVersion,
                   int minorVersion)Check whether the current version is at least the given major and minor version. | 
public SemanticVersion(String version)
version - versionpublic String getVersion()
public int compareTo(SemanticVersion o)
compareTo in interface Comparable<SemanticVersion>public static boolean isAtLeastMajorMinor(String version, int majorVersion, int minorVersion)
version - The version to checkmajorVersion - The major versionminorVersion - The minor version