public class Version extends java.lang.Object implements java.lang.Comparable<Version>
| Constructor and Description |
|---|
Version(java.lang.String version)
Constructor for class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version that)
A version number should be considered greater, if the major version number is higher.
|
boolean |
equals(java.lang.Object that) |
boolean |
isSupported(java.lang.String supportedVersionString)
Checks that this Version is supported or not.
|
java.lang.String |
toString() |
public Version(@NonNull
java.lang.String version)
version - the String representation of the version.public boolean isSupported(@NonNull
java.lang.String supportedVersionString)
supportedVersionString - the reference version, to compare with.true if yes, false otherwise.public int compareTo(@Nullable
Version that)
compareTo in interface java.lang.Comparable<Version>that - the Version to compare to.public boolean equals(@Nullable
java.lang.Object that)
equals in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object