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:
  • Field Details

  • Constructor Details

    • Version

      public Version(int major, int minor, int patch)
  • Method Details

    • fromString

      public static Version fromString(String version)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMajor

      public int getMajor()
    • getMinor

      public int getMinor()
    • getPatch

      public int getPatch()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Version version)
      Specified by:
      compareTo in interface Comparable<Version>
    • createRangeOf

      public static com.google.common.collect.Range<Version> createRangeOf(Version from, Version to)