Options
All
  • Public
  • Public/Protected
  • All
Menu

An OpenNMS version.

Hierarchy

  • OnmsVersion

Index

Constructors

  • new OnmsVersion(version?: string, displayVersion?: string): API.OnmsVersion
  • Construct a new version.

    Parameters

    • Optional version: string

      The numeric version.

    • Optional displayVersion: string

      The full display version (including extra designators like x.x.x-SNAPSHOT).

    Returns API.OnmsVersion

Properties

version: string

The numeric version (ex: 19.0.0).

Accessors

  • get displayVersion(): string

Methods

  • eq(compare?: string): boolean
  • Returns true if this version is equal to the passed version.

    Parameters

    • compare: string = '0.0.0'

    Returns boolean

  • ge(compare?: string): boolean
  • Returns true if this version is greater than or equal to the passed version.

    Parameters

    • compare: string = '0.0.0'

    Returns boolean

  • gt(compare?: string): boolean
  • Returns true if this version is greater than the passed version.

    Parameters

    • compare: string = '0.0.0'

    Returns boolean

  • le(compare?: string): boolean
  • Returns true if this version is less than or equal to the passed version.

    Parameters

    • compare: string = '0.0.0'

    Returns boolean

  • lt(compare?: string): boolean
  • Returns true if this version is less than the passed version.

    Parameters

    • compare: string = '0.0.0'

    Returns boolean

  • toString(): string

Generated using TypeDoc