discord-jadx/app/src/main/java/com/discord/models/phone/PhoneCountryCode.java

125 lines
3.8 KiB
Java

package com.discord.models.phone;
import c.d.b.a.a;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: PhoneCountryCode.kt */
public final class PhoneCountryCode {
public static final Companion Companion = new Companion(null);
private static final PhoneCountryCode DEFAULT_COUNTRY_CODE = new PhoneCountryCode("US", "+1", "United States");
private static final PhoneCountryCode MISSING_COUNTRY_CODE = new PhoneCountryCode("", "", "");
private final String alpha2;
private final String code;
private final String name;
/* compiled from: PhoneCountryCode.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final PhoneCountryCode getDEFAULT_COUNTRY_CODE() {
return PhoneCountryCode.access$getDEFAULT_COUNTRY_CODE$cp();
}
public final PhoneCountryCode getMISSING_COUNTRY_CODE() {
return PhoneCountryCode.access$getMISSING_COUNTRY_CODE$cp();
}
}
public PhoneCountryCode(String str, String str2, String str3) {
a.i0(str, "alpha2", str2, "code", str3, "name");
this.alpha2 = str;
this.code = str2;
this.name = str3;
}
public static final /* synthetic */ PhoneCountryCode access$getDEFAULT_COUNTRY_CODE$cp() {
return DEFAULT_COUNTRY_CODE;
}
public static final /* synthetic */ PhoneCountryCode access$getMISSING_COUNTRY_CODE$cp() {
return MISSING_COUNTRY_CODE;
}
public static /* synthetic */ PhoneCountryCode copy$default(PhoneCountryCode phoneCountryCode, String str, String str2, String str3, int i, Object obj) {
if ((i & 1) != 0) {
str = phoneCountryCode.alpha2;
}
if ((i & 2) != 0) {
str2 = phoneCountryCode.code;
}
if ((i & 4) != 0) {
str3 = phoneCountryCode.name;
}
return phoneCountryCode.copy(str, str2, str3);
}
public final String component1() {
return this.alpha2;
}
public final String component2() {
return this.code;
}
public final String component3() {
return this.name;
}
public final PhoneCountryCode copy(String str, String str2, String str3) {
m.checkNotNullParameter(str, "alpha2");
m.checkNotNullParameter(str2, "code");
m.checkNotNullParameter(str3, "name");
return new PhoneCountryCode(str, str2, str3);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PhoneCountryCode)) {
return false;
}
PhoneCountryCode phoneCountryCode = (PhoneCountryCode) obj;
return m.areEqual(this.alpha2, phoneCountryCode.alpha2) && m.areEqual(this.code, phoneCountryCode.code) && m.areEqual(this.name, phoneCountryCode.name);
}
public final String getAlpha2() {
return this.alpha2;
}
public final String getCode() {
return this.code;
}
public final String getName() {
return this.name;
}
public int hashCode() {
String str = this.alpha2;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
String str2 = this.code;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.name;
if (str3 != null) {
i = str3.hashCode();
}
return hashCode2 + i;
}
public String toString() {
StringBuilder L = a.L("PhoneCountryCode(alpha2=");
L.append(this.alpha2);
L.append(", code=");
L.append(this.code);
L.append(", name=");
return a.D(L, this.name, ")");
}
}