public final class Topic


Represent the topic result from the getTopics API.

Summary

Public constructors

Topic(long taxonomyVersion, long modelVersion, int topicId)

Public methods

boolean
equals(Object other)
final long

the version of the model.

final long

the version of the taxonomy.

final int

the unique id of a topic.

int
@NonNull String

Public constructors

Topic

Added in 1.0.0
public Topic(long taxonomyVersion, long modelVersion, int topicId)
Parameters
long taxonomyVersion

the version of the taxonomy.

long modelVersion

the version of the model.

int topicId

the unique id of a topic. See https://developer.android.com/design-for-safety/privacy-sandbox/guides/topics for details.

Public methods

equals

public boolean equals(Object other)

getModelVersion

Added in 1.0.0
public final long getModelVersion()

the version of the model.

getTaxonomyVersion

Added in 1.0.0
public final long getTaxonomyVersion()

the version of the taxonomy.

getTopicId

Added in 1.0.0
public final int getTopicId()

the unique id of a topic. See https://developer.android.com/design-for-safety/privacy-sandbox/guides/topics for details.

hashCode

public int hashCode()

toString

public @NonNull String toString()