ProtocolVersion
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
getMajor(): number |
|
public |
getMinor(): number |
|
public |
isEqualTo(other: ProtocolVersion | {major: number, minor: number}): boolean |
|
public |
isGreaterOrEqualTo(other: ProtocolVersion | {major: number, minor: number}): boolean |
|
public |
isGreaterThan(other: ProtocolVersion | {major: number, minor: number}): boolean |
|
public |
isLessOrEqualTo(other: ProtocolVersion | {major: number, minor: number}): boolean |
|
public |
isLessThan(other: ProtocolVersion | {major: number, minor: number}): boolean |
|
public |
toString() |
Public Constructors
public constructor() source
Public Methods
public isEqualTo(other: ProtocolVersion | {major: number, minor: number}): boolean source
Params:
Name | Type | Attribute | Description |
other | ProtocolVersion | {major: number, minor: number} | the protocol version to compare to |
Return:
boolean | If this version is the equal to the other version. |
public isGreaterOrEqualTo(other: ProtocolVersion | {major: number, minor: number}): boolean source
Params:
Name | Type | Attribute | Description |
other | ProtocolVersion | {major: number, minor: number} | the protocol version to compare to |
Return:
boolean | if this version is semantically larger or equal to the other version. |
public isGreaterThan(other: ProtocolVersion | {major: number, minor: number}): boolean source
Params:
Name | Type | Attribute | Description |
other | ProtocolVersion | {major: number, minor: number} | the protocol version to compare to |
Return:
boolean | If this version is semantically larger than the other version. |
public isLessOrEqualTo(other: ProtocolVersion | {major: number, minor: number}): boolean source
Params:
Name | Type | Attribute | Description |
other | ProtocolVersion | {major: number, minor: number} | the protocol version to compare to |
Return:
boolean | if this version is semantically smaller or equal to the other version. |
public isLessThan(other: ProtocolVersion | {major: number, minor: number}): boolean source
Params:
Name | Type | Attribute | Description |
other | ProtocolVersion | {major: number, minor: number} | the protocol version to compare to |
Return:
boolean | If this version semantically smaller than the other version. |