public static class VersionChecker.Version extends java.lang.Object implements java.lang.Comparable<VersionChecker.Version>
Constructor and Description |
---|
Version(java.lang.String version)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VersionChecker.Version version)
Compares this object with the specified object for order.
|
public Version(java.lang.String version)
version
- version numberjava.lang.NumberFormatException
- if version contains anything else than digits and points (or underscores)public int compareTo(@NotNull VersionChecker.Version version)
compareTo
in interface java.lang.Comparable<VersionChecker.Version>
version
- the object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.