PackageInfoBuilder

public final class PackageInfoBuilder


Builder for PackageInfo.

Summary

Public constructors

Public methods

PackageInfo

Returns a PackageInfo with the provided data.

static PackageInfoBuilder

Start building a new PackageInfo.

PackageInfoBuilder
setApplicationInfo(ApplicationInfo applicationInfo)

Sets the application info.

PackageInfoBuilder
setPackageName(String packageName)

Sets the package name.

Public constructors

PackageInfoBuilder

public PackageInfoBuilder()

Public methods

build

public PackageInfo build()

Returns a PackageInfo with the provided data.

newBuilder

public static PackageInfoBuilder newBuilder()

Start building a new PackageInfo.

Returns
PackageInfoBuilder

a new instance of PackageInfoBuilder.

setApplicationInfo

public PackageInfoBuilder setApplicationInfo(ApplicationInfo applicationInfo)

Sets the application info.

Default is null

See also
PackageInfo

setPackageName

public PackageInfoBuilder setPackageName(String packageName)

Sets the package name.

Default is null.

See also
PackageInfo