public final class UpdateInfo


Represents information about an available update for a component.

Summary

Nested types

public final class UpdateInfo.Builder

Builder class for creating an instance of UpdateInfo.

Public constructors

UpdateInfo(
    @NonNull String uri,
    @NonNull String component,
    @NonNull String securityPatchLevel,
    @NonNull Date publishedDate
)

Public methods

boolean
equals(Object other)

Compares this UpdateInfo with another object for equality.

final @NonNull String

Component for which the update information is provided.

final @NonNull Date

Date when the available update was published.

final @NonNull String

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

final @NonNull String

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

int

Provides a hash code for an UpdateInfo object.

@NonNull String

Returns a string representation of the update information.

Public constructors

UpdateInfo

Added in 1.0.0-alpha04
public UpdateInfo(
    @NonNull String uri,
    @NonNull String component,
    @NonNull String securityPatchLevel,
    @NonNull Date publishedDate
)

Public methods

equals

public boolean equals(Object other)

Compares this UpdateInfo with another object for equality.

Parameters
Object other

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.

getComponent

Added in 1.0.0-alpha04
public final @NonNull String getComponent()

Component for which the update information is provided.

getPublishedDate

Added in 1.0.0-alpha04
public final @NonNull Date getPublishedDate()

Date when the available update was published.

getSecurityPatchLevel

Added in 1.0.0-alpha04
public final @NonNull String getSecurityPatchLevel()

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

getUri

Added in 1.0.0-alpha04
public final @NonNull String getUri()

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

hashCode

public int hashCode()

Provides a hash code for an UpdateInfo object.

Returns
int

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

toString

public @NonNull String toString()

Returns a string representation of the update information.

Returns
@NonNull String

A string that describes the update details.