Class Version
- java.lang.Object
-
- org.opendaylight.ovsdb.lib.notation.Version
-
- All Implemented Interfaces:
Comparable<Version>
public class Version extends Object implements Comparable<Version>
This class represents a version according to RFC 7047. The default implementation assumes the left-most digit is most significant when performing comparisons.- See Also:
- RFC7047 Section 3.1
-
-
Field Summary
Fields Modifier and Type Field Description static Version
NULL
static String
NULL_VERSION_STRING
-
Constructor Summary
Constructors Constructor Description Version(int major, int minor, int patch)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Version version)
static com.google.common.collect.Range<Version>
createRangeOf(Version from, Version to)
boolean
equals(Object obj)
static Version
fromString(String version)
int
getMajor()
int
getMinor()
int
getPatch()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
NULL
public static final Version NULL
-
NULL_VERSION_STRING
public static final String NULL_VERSION_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getPatch
public int getPatch()
-
compareTo
public int compareTo(Version version)
- Specified by:
compareTo
in interfaceComparable<Version>
-
-