Package org.opencabstandard.provider
Class Version
- java.lang.Object
-
- org.opencabstandard.provider.Version
-
- All Implemented Interfaces:
java.lang.Comparable<Version>
public class Version extends java.lang.Object implements java.lang.Comparable<Version>
This class allows us to compare contract versions. It uses semantic version comparison. Class implementsComparable
interface. This class was taken from here: https://stackoverflow.com/questions/198431/how-do-you-compare-two-version-strings-in-java/11024200#11024200 Solution provided by: https://stackoverflow.com/users/1445568/alex
-
-
Constructor Summary
Constructors Constructor Description Version(java.lang.String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Version that)
boolean
equals(java.lang.Object that)
java.lang.String
get()
-