Class SemanticVersion

  • All Implemented Interfaces:
    Comparable<SemanticVersion>

    public final class SemanticVersion
    extends Object
    implements Comparable<SemanticVersion>
    Very basic semver parser, only pays attention to major, minor, and patch numbers. Attempts to do a little bit of validation that the version string is valid, but is not a full implementation of the semver spec. NOTE: compareTo only respects major, minor, patch, and whether this is a prerelease version. All prerelease versions are considered equivalent.