package androidx.privacysandbox.ads.adservices.topics; /* loaded from: classes.dex */ public final class Topic { private final long modelVersion; private final long taxonomyVersion; private final int topicId; public final long getModelVersion() { return this.modelVersion; } public final long getTaxonomyVersion() { return this.taxonomyVersion; } public final int getTopicId() { return this.topicId; } public Topic(long j, long j2, int i) { this.taxonomyVersion = j; this.modelVersion = j2; this.topicId = i; } public String toString() { return "Topic { " + ("TaxonomyVersion=" + this.taxonomyVersion + ", ModelVersion=" + this.modelVersion + ", TopicCode=" + this.topicId + " }"); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Topic)) { return false; } Topic topic = (Topic) obj; return this.taxonomyVersion == topic.taxonomyVersion && this.modelVersion == topic.modelVersion && this.topicId == topic.topicId; } public int hashCode() { return (((Long.hashCode(this.taxonomyVersion) * 31) + Long.hashCode(this.modelVersion)) * 31) + Integer.hashCode(this.topicId); } }