- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
61 lines
1.8 KiB
Java
61 lines
1.8 KiB
Java
package androidx.privacysandbox.ads.adservices.appsetid;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nAppSetId.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AppSetId.kt\nandroidx/privacysandbox/ads/adservices/appsetid/AppSetId\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,70:1\n1#2:71\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class AppSetId {
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final int SCOPE_APP = 1;
|
|
public static final int SCOPE_DEVELOPER = 2;
|
|
private final String id;
|
|
private final int scope;
|
|
|
|
public final String getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public final int getScope() {
|
|
return this.scope;
|
|
}
|
|
|
|
public AppSetId(String id, int i) {
|
|
Intrinsics.checkNotNullParameter(id, "id");
|
|
this.id = id;
|
|
this.scope = i;
|
|
if (i != 1 && i != 2) {
|
|
throw new IllegalArgumentException("Scope undefined.".toString());
|
|
}
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof AppSetId)) {
|
|
return false;
|
|
}
|
|
AppSetId appSetId = (AppSetId) obj;
|
|
return Intrinsics.areEqual(this.id, appSetId.id) && this.scope == appSetId.scope;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (this.id.hashCode() * 31) + Integer.hashCode(this.scope);
|
|
}
|
|
|
|
public String toString() {
|
|
return "AppSetId: id=" + this.id + ", scope=" + (this.scope == 1 ? "SCOPE_APP" : "SCOPE_DEVELOPER");
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|