GetTopicsResponse.Builder
public
static
final
class
GetTopicsResponse.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.topics.GetTopicsResponse.Builder |
GetTopicsResponse 对象的构建器。此类应在测试中使用
Topics API 的预期响应实现
摘要
公共构造函数 | |
|---|---|
Builder(List<Topic> topics)
为 |
|
公共方法 | |
|---|---|
GetTopicsResponse
|
build()
构建 |
继承的方法 | |
|---|---|
公共构造函数
Builder
public Builder (List<Topic> topics)
为 GetTopicsResponse 对象创建 Builder。
| 参数 | |
|---|---|
topics |
List:返回的主题列表。
此值不能为 null。 |
公共方法
build
public GetTopicsResponse build ()
构建 GetTopicsResponse 实例。
如果任何参数为 null 或不匹配,则抛出 IllegalArgumentException 。
| 返回 | |
|---|---|
GetTopicsResponse |
|