SecurityPatchState.VersionedSecurityPatchLevel


class SecurityPatchState.VersionedSecurityPatchLevel : SecurityPatchState.SecurityPatchLevel


Implementation of SecurityPatchLevel for a versioned patch level.

Summary

Public companion functions

SecurityPatchState.VersionedSecurityPatchLevel

Creates a new VersionedSecurityPatchLevel from a string representation of the version.

Public constructors

VersionedSecurityPatchLevel(
    majorVersion: Int,
    minorVersion: Int,
    buildVersion: Int,
    patchVersion: Int
)

Public functions

open operator Int
Int

Build version of the security patch level.

Int

Major version of the security patch level.

Int

Minor version of the security patch level.

Int

Patch version of the security patch level.

open String

Public companion functions

fromString

Added in 1.0.0-alpha05
fun fromString(value: String): SecurityPatchState.VersionedSecurityPatchLevel

Creates a new VersionedSecurityPatchLevel from a string representation of the version.

Parameters
value: String

The version string in the format of "major.minor.build.patch".

Throws
kotlin.IllegalArgumentException

if the version string is not in the correct format.

Public constructors

VersionedSecurityPatchLevel

Added in 1.0.0-alpha05
VersionedSecurityPatchLevel(
    majorVersion: Int,
    minorVersion: Int,
    buildVersion: Int = 0,
    patchVersion: Int = 0
)

Public functions

compareTo

Added in 1.0.0-alpha05
open operator fun compareTo(other: SecurityPatchState.SecurityPatchLevel): Int

getBuildVersion

Added in 1.0.0-alpha05
fun getBuildVersion(): Int

Build version of the security patch level.

getMajorVersion

Added in 1.0.0-alpha05
fun getMajorVersion(): Int

Major version of the security patch level.

getMinorVersion

Added in 1.0.0-alpha05
fun getMinorVersion(): Int

Minor version of the security patch level.

getPatchVersion

Added in 1.0.0-alpha05
fun getPatchVersion(): Int

Patch version of the security patch level.

toString

open fun toString(): String