SecurityPatchState.DateBasedSecurityPatchLevel


class SecurityPatchState.DateBasedSecurityPatchLevel : SecurityPatchState.SecurityPatchLevel


Implementation of SecurityPatchLevel for a date-based patch level.

Summary

Public companion functions

SecurityPatchState.DateBasedSecurityPatchLevel

Creates a new DateBasedSecurityPatchLevel from a string representation of the date.

Public constructors

DateBasedSecurityPatchLevel(year: Int, month: Int, day: Int)

Public functions

open operator Int
Int

Day of the security patch level.

Int

Month of the security patch level.

Int

Year of the security patch level.

open String

Public companion functions

fromString

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

Creates a new DateBasedSecurityPatchLevel from a string representation of the date.

Parameters
value: String

The date string in the format of DATE_FORMATS.

Throws
kotlin.IllegalArgumentException

if the date string is not in the correct format.

Public constructors

DateBasedSecurityPatchLevel

Added in 1.0.0-alpha05
DateBasedSecurityPatchLevel(year: Int, month: Int, day: Int)

Public functions

compareTo

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

getDay

Added in 1.0.0-alpha05
fun getDay(): Int

Day of the security patch level.

getMonth

Added in 1.0.0-alpha05
fun getMonth(): Int

Month of the security patch level.

getYear

Added in 1.0.0-alpha05
fun getYear(): Int

Year of the security patch level.

toString

open fun toString(): String