Gamalto

Fork me on GitHub

Object Version Overview

Gamalto. Version

new Gamalto.Version(major, minor, build, revision, stageopt)

Represents a version number.

Parameters
Name Type Attributes Description
major number

Major component of the version number.

minor number

Minor component of the version number.

build number

Build component of the version number.

revision number

Revision component of the version number.

stage number | string <optional>

Stage component of the version number.

Extends

Members

build :number

Gets or sets the build component of the version number.

major :number

Gets or sets the major component of the version number.

minor :number

Gets or sets the minor component of the version number.

revision :number

Gets or sets the revision component of the version number.

stage :object

Gets or sets the stage component of the version number.

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

parse(str) Gamalto.Version

static

Converts a string to a Version object.

Parameters
Name Type Description
str string

String to be converted.

Returns
  • New instance representing the converted string.

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

equals(version) boolean

Determines whether the current object is equal to the passed parameter.

Parameters
Name Type Description
version Gamalto.Version

Version object to test.

Returns
  • True if the two objects are equal.

toString() string

override

Converts the value of the object to its equivalent printable string representation.

Overrides
Returns
  • Version number as a printable string.

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)