Uranium
Application Framework
UM.Version.Version Class Reference

Public Member Functions

def __init__
 
def getMajor (self)
 
def getMinor (self)
 
def getRevision (self)
 
def getPostfixType (self)
 
def getPostfixVersion (self)
 
def hasPostFix (self)
 
def __gt__
 
def __lt__
 
def __eq__
 
def __ge__
 
def __le__
 
def __str__ (self)
 
def __hash__ (self)
 

Detailed Description

Represents a version number, like "3.2.8" and allows comparison of those
numbers.

Member Function Documentation

◆ __hash__()

def UM.Version.Version.__hash__ (   self,
  int 
)
Returns a number reasonably representing the identity of the version.

◆ __str__()

def UM.Version.Version.__str__ (   self,
  str 
)
Returns a string representation containing the major, minor and revision
number.

Such as "3.2.8".

◆ getMajor()

def UM.Version.Version.getMajor (   self,
  int 
)
Gets the major version number.

The major version number is the first number of the version: "3" in the
version "3.2.8".

◆ getMinor()

def UM.Version.Version.getMinor (   self,
  int 
)
Gets the minor version number.

The minor version number is the second number of the version: "2" in the
version "3.2.8".

◆ getPostfixType()

def UM.Version.Version.getPostfixType (   self,
  str 
)
Gets the postfix type.

The postfix type is the name of the postfix, e.g. "alpha" in the version "1.2.3-alpha.4"

◆ getPostfixVersion()

def UM.Version.Version.getPostfixVersion (   self,
  int 
)
Gets the postfix version number.

The postfix version is the last number, e.g. "4" in the version "1.2.3-alpha.4"

◆ getRevision()

def UM.Version.Version.getRevision (   self,
  int 
)
Gets the revision or patch version number.

The revision version number is the third number of the version: "8" in
the version "3.2.8".

◆ hasPostFix()

def UM.Version.Version.hasPostFix (   self,
  bool 
)
Check if a version has a postfix.

The documentation for this class was generated from the following file: