DownloadCompletedOutput.Builder

public static final class DownloadCompletedOutput.Builder
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.DownloadCompletedOutput.Builder


DownloadCompletedOutput 的构建器

摘要

公共构造函数

Builder()

公共方法

DownloadCompletedOutput.Builder addRetainedKey(String value)
DownloadCompletedOutput build()

构建实例。

DownloadCompletedOutput.Builder setRetainedKeys(List<String> value)

要保留在 REMOTE_DATA 表中的键。

继承的方法

Object clone()

创建并返回此对象的副本。

boolean equals(Object obj)

指示某个其他对象是否“等于”这个。

void finalize()

垃圾回收时,由垃圾回收器针对对象调用 确定没有对对象的更多引用。

final Class<?> getClass()

返回此 Object 的运行时类。

int hashCode()

返回对象的哈希代码值。

final void notify()

唤醒正在等待此对象的 监控。

final void notifyAll()

唤醒正在等待此对象的监控器的所有线程。

String toString()

返回对象的字符串表示。

final void wait(long timeoutMillis, int nanos)

导致当前线程处于等待状态,直到其被唤醒,通常 通知中断,或者直到 经过了一定量的实时。

final void wait(long timeoutMillis)

导致当前线程处于等待状态,直到其被唤醒,通常 通知中断,或者直到 经过了一定量的实时。

final void wait()

导致当前线程处于等待状态,直到其被唤醒,通常 通知中断

公共构造函数

公共方法

addRetainedKey

public DownloadCompletedOutput.Builder addRetainedKey (String value)

参数
value String:此值不能为 null

返回值
DownloadCompletedOutput.Builder 此值不能为 null

build

public DownloadCompletedOutput build ()

构建实例。调用这个方法后,不应触碰此构建器!

返回值
DownloadCompletedOutput 此值不能为 null

setRetainedKeys

public DownloadCompletedOutput.Builder setRetainedKeys (List<String> value)

要保留在 REMOTE_DATA 表中的键。任何非 此列表中的所有资源会从表格中移除。

参数
value List:此值不能为 null

返回值
DownloadCompletedOutput.Builder 此值不能为 null