package c.g.a.a; import java.io.Serializable; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.Locale; import java.util.Objects; import java.util.TimeZone; /* compiled from: JsonFormat */ @Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface i { /* compiled from: JsonFormat */ public enum a { ACCEPT_SINGLE_VALUE_AS_ARRAY, ACCEPT_CASE_INSENSITIVE_PROPERTIES, ACCEPT_CASE_INSENSITIVE_VALUES, WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS, WRITE_DATES_WITH_ZONE_ID, WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED, WRITE_SORTED_MAP_ENTRIES, ADJUST_DATES_TO_CONTEXT_TIME_ZONE } /* compiled from: JsonFormat */ public static class b { public static final b a = new b(0, 0); public final int b; /* renamed from: c reason: collision with root package name */ public final int f514c; public b(int i, int i2) { this.b = i; this.f514c = i2; } public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null || obj.getClass() != b.class) { return false; } b bVar = (b) obj; return bVar.b == this.b && bVar.f514c == this.f514c; } public int hashCode() { return this.f514c + this.b; } public String toString() { return this == a ? "EMPTY" : String.format("(enabled=0x%x,disabled=0x%x)", Integer.valueOf(this.b), Integer.valueOf(this.f514c)); } } /* compiled from: JsonFormat */ public enum c { ANY, NATURAL, SCALAR, ARRAY, OBJECT, NUMBER, NUMBER_FLOAT, NUMBER_INT, STRING, BOOLEAN, BINARY; public boolean f() { return this == NUMBER || this == NUMBER_INT || this == NUMBER_FLOAT; } } /* compiled from: JsonFormat */ public static class d implements Serializable { public static final d i = new d("", c.ANY, "", "", b.a, null); private static final long serialVersionUID = 1; private final b _features; private final Boolean _lenient; private final Locale _locale; private final String _pattern; private final c _shape; private final String _timezoneStr; public transient TimeZone j; public d() { this("", c.ANY, "", "", b.a, null); } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ public d(String str, c cVar, String str2, String str3, b bVar, Boolean bool) { this(str, cVar, (str2 == null || str2.length() == 0 || "##default".equals(str2)) ? null : new Locale(str2), (str3 == null || str3.length() == 0 || "##default".equals(str3)) ? null : str3, null, bVar, bool); } public d(String str, c cVar, Locale locale, String str2, TimeZone timeZone, b bVar, Boolean bool) { this._pattern = str == null ? "" : str; this._shape = cVar == null ? c.ANY : cVar; this._locale = locale; this.j = timeZone; this._timezoneStr = str2; this._features = bVar == null ? b.a : bVar; this._lenient = bool; } public static boolean a(T t, T t2) { if (t == null) { return t2 == null; } if (t2 == null) { return false; } return t.equals(t2); } public Boolean b(a aVar) { b bVar = this._features; Objects.requireNonNull(bVar); int ordinal = 1 << aVar.ordinal(); if ((bVar.f514c & ordinal) != 0) { return Boolean.FALSE; } if ((ordinal & bVar.b) != 0) { return Boolean.TRUE; } return null; } public Locale c() { return this._locale; } public String d() { return this._pattern; } public c e() { return this._shape; } @Override // java.lang.Object public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null || obj.getClass() != d.class) { return false; } d dVar = (d) obj; return this._shape == dVar._shape && this._features.equals(dVar._features) && a(this._lenient, dVar._lenient) && a(this._timezoneStr, dVar._timezoneStr) && a(this._pattern, dVar._pattern) && a(this.j, dVar.j) && a(this._locale, dVar._locale); } public TimeZone f() { TimeZone timeZone = this.j; if (timeZone != null) { return timeZone; } String str = this._timezoneStr; if (str == null) { return null; } TimeZone timeZone2 = TimeZone.getTimeZone(str); this.j = timeZone2; return timeZone2; } public boolean g() { return this._locale != null; } public boolean h() { String str = this._pattern; return str != null && str.length() > 0; } @Override // java.lang.Object public int hashCode() { String str = this._timezoneStr; int hashCode = str == null ? 1 : str.hashCode(); String str2 = this._pattern; if (str2 != null) { hashCode ^= str2.hashCode(); } int hashCode2 = this._shape.hashCode() + hashCode; Boolean bool = this._lenient; if (bool != null) { hashCode2 ^= bool.hashCode(); } Locale locale = this._locale; if (locale != null) { hashCode2 += locale.hashCode(); } return this._features.hashCode() ^ hashCode2; } public boolean i() { return this._shape != c.ANY; } public boolean j() { String str; return this.j != null || ((str = this._timezoneStr) != null && !str.isEmpty()); } public final d k(d dVar) { d dVar2; TimeZone timeZone; String str; if (dVar == null || dVar == (dVar2 = i) || dVar == this) { return this; } if (this == dVar2) { return dVar; } String str2 = dVar._pattern; if (str2 == null || str2.isEmpty()) { str2 = this._pattern; } c cVar = dVar._shape; if (cVar == c.ANY) { cVar = this._shape; } Locale locale = dVar._locale; if (locale == null) { locale = this._locale; } b bVar = this._features; if (bVar == null) { bVar = dVar._features; } else { b bVar2 = dVar._features; if (bVar2 != null) { int i2 = bVar2.f514c; int i3 = bVar2.b; if (!(i2 == 0 && i3 == 0)) { int i4 = bVar.b; if (i4 == 0 && bVar.f514c == 0) { bVar = bVar2; } else { int i5 = ((~i2) & i4) | i3; int i6 = bVar.f514c; int i7 = i2 | ((~i3) & i6); if (!(i5 == i4 && i7 == i6)) { bVar = new b(i5, i7); } } } } } Boolean bool = dVar._lenient; if (bool == null) { bool = this._lenient; } String str3 = dVar._timezoneStr; if (str3 == null || str3.isEmpty()) { str = this._timezoneStr; timeZone = this.j; } else { timeZone = dVar.j; str = str3; } return new d(str2, cVar, locale, str, timeZone, bVar, bool); } @Override // java.lang.Object public String toString() { return String.format("JsonFormat.Value(pattern=%s,shape=%s,lenient=%s,locale=%s,timezone=%s,features=%s)", this._pattern, this._shape, this._lenient, this._locale, this._timezoneStr, this._features); } } m0 lenient() default m0.DEFAULT; String locale() default "##default"; String pattern() default ""; c shape() default c.ANY; String timezone() default "##default"; a[] with() default {}; a[] without() default {}; }