Class: shaka.deprecate.Version

Constructor

new Version(major, minor)

Parameters:
Name Type Description
major number
minor number
Source:

Methods

parse(versionString) → {shaka.deprecate.Version}

Parse the major and minor values out of a version string that is assumed to follow the grammar: "vMAJOR.MINOR.". What comes after the last "." we will ignore.
Parameters:
Name Type Description
versionString string
Source:
Returns:
Type
shaka.deprecate.Version

compareTo(othernon-null) → {number}

Returns: - positive if |this| > |other| - zero if |this| == |other| - negative if |this| < |other|
Parameters:
Name Type Description
other shaka.deprecate.Version
Source:
Returns:
Type
number

major() → {number}

Source:
Returns:
Type
number

minor() → {number}

Source:
Returns:
Type
number

toString()

Source: