SecurityPatchState.DateBasedSecurityPatchLevel


public final class SecurityPatchState.DateBasedSecurityPatchLevel extends SecurityPatchState.SecurityPatchLevel


Implementation of SecurityPatchLevel for a date-based patch level.

Summary

Public constructors

DateBasedSecurityPatchLevel(int year, int month, int day)

Public methods

int
static final @NonNull SecurityPatchState.DateBasedSecurityPatchLevel

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

final int

Day of the security patch level.

final int

Month of the security patch level.

final int

Year of the security patch level.

@NonNull String

Public constructors

DateBasedSecurityPatchLevel

Added in 1.0.0
public DateBasedSecurityPatchLevel(int year, int month, int day)

Public methods

compareTo

Added in 1.0.0
public int compareTo(@NonNull SecurityPatchState.SecurityPatchLevel other)

fromString

Added in 1.0.0
public static final @NonNull SecurityPatchState.DateBasedSecurityPatchLevel fromString(@NonNull String value)

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

Parameters
@NonNull String value

The date string in the format of DATE_FORMATS.

Throws
IllegalArgumentException

if the date string is not in the correct format.

getDay

Added in 1.0.0
public final int getDay()

Day of the security patch level.

getMonth

Added in 1.0.0
public final int getMonth()

Month of the security patch level.

getYear

Added in 1.0.0
public final int getYear()

Year of the security patch level.

toString

public @NonNull String toString()