UpdateInfo.Builder


public final class UpdateInfo.Builder


Builder class for creating an instance of UpdateInfo.

Summary

Public constructors

Public methods

final @NonNull UpdateInfo

Builds and returns an UpdateInfo object.

final @NonNull UpdateInfo.Builder

Sets the component associated with the update.

final @NonNull UpdateInfo.Builder
setLastCheckTimeMillis(long lastCheckTimeMillis)

Sets the timestamp when this update was checked or discovered.

final @NonNull UpdateInfo.Builder
setPublishedDateMillis(long publishedDateMillis)

Sets the publication date of the update.

final @NonNull UpdateInfo.Builder
setSecurityPatchLevel(@NonNull String securityPatchLevel)

Sets the security patch level of the update.

Public constructors

Builder

Added in 1.1.0-alpha01
public Builder()

Public methods

build

Added in 1.1.0-alpha01
public final @NonNull UpdateInfo build()

Builds and returns an UpdateInfo object.

Returns
@NonNull UpdateInfo

The constructed UpdateInfo.

setComponent

Added in 1.1.0-alpha01
public final @NonNull UpdateInfo.Builder setComponent(@NonNull String component)

Sets the component associated with the update.

Parameters
@NonNull String component

The component to set.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.

setLastCheckTimeMillis

Added in 1.1.0-alpha01
public final @NonNull UpdateInfo.Builder setLastCheckTimeMillis(long lastCheckTimeMillis)

Sets the timestamp when this update was checked or discovered.

Parameters
long lastCheckTimeMillis

The timestamp in milliseconds since the epoch.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.

setPublishedDateMillis

Added in 1.1.0-alpha01
public final @NonNull UpdateInfo.Builder setPublishedDateMillis(long publishedDateMillis)

Sets the publication date of the update.

Parameters
long publishedDateMillis

The timestamp in milliseconds since the epoch.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.

setSecurityPatchLevel

Added in 1.1.0-alpha01
public final @NonNull UpdateInfo.Builder setSecurityPatchLevel(@NonNull String securityPatchLevel)

Sets the security patch level of the update.

Parameters
@NonNull String securityPatchLevel

The security patch level to set.

Returns
@NonNull UpdateInfo.Builder

The builder instance for chaining.