class UpdateInfo


Represents information about an available update for a component.

Summary

Nested types

Builder class for creating an instance of UpdateInfo.

Public constructors

UpdateInfo(
    uri: String,
    component: String,
    securityPatchLevel: String,
    publishedDate: Date
)

Public functions

open operator Boolean
equals(other: Any?)

Compares this UpdateInfo with another object for equality.

open Int

Provides a hash code for an UpdateInfo object.

open String

Returns a string representation of the update information.

Public properties

String

Component for which the update information is provided.

Date

Date when the available update was published.

String

Security patch level of the available update ready to be applied by the reporting client.

String

Uri of the content provider from OTA update client serving update information data.

Public constructors

UpdateInfo

Added in 1.0.0-alpha04
UpdateInfo(
    uri: String,
    component: String,
    securityPatchLevel: String,
    publishedDate: Date
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

Compares this UpdateInfo with another object for equality.

Parameters
other: Any?

The object to compare with this instance.

Returns
Boolean

true if the other object is an instance of UpdateInfo and all properties match, false otherwise.

hashCode

open fun hashCode(): Int

Provides a hash code for an UpdateInfo object.

Returns
Int

A hash code produced by the properties of the update info.

toString

open fun toString(): String

Returns a string representation of the update information.

Returns
String

A string that describes the update details.

Public properties

component

Added in 1.0.0-alpha04
val componentString

Component for which the update information is provided.

publishedDate

Added in 1.0.0-alpha04
val publishedDateDate

Date when the available update was published.

securityPatchLevel

Added in 1.0.0-alpha04
val securityPatchLevelString

Security patch level of the available update ready to be applied by the reporting client. Use SecurityPatchState.getComponentSecurityPatchLevel method to get encapsulated value.

uri

Added in 1.0.0-alpha04
val uriString

Uri of the content provider from OTA update client serving update information data.