92 lines
2.6 KiB
Java
92 lines
2.6 KiB
Java
package c.g.a.c;
|
|
|
|
import c.d.b.a.a;
|
|
import c.g.a.b.k;
|
|
import c.g.a.b.t.f;
|
|
import c.g.a.c.i0.d;
|
|
import java.io.Serializable;
|
|
import java.lang.annotation.Annotation;
|
|
/* compiled from: PropertyName */
|
|
public class t implements Serializable {
|
|
public static final t i = new t("", null);
|
|
public static final t j = new t(new String(""), null);
|
|
private static final long serialVersionUID = 1;
|
|
public k _encodedSimple;
|
|
public final String _namespace;
|
|
public final String _simpleName;
|
|
|
|
public t(String str) {
|
|
Annotation[] annotationArr = d.a;
|
|
this._simpleName = str;
|
|
this._namespace = null;
|
|
}
|
|
|
|
public t(String str, String str2) {
|
|
Annotation[] annotationArr = d.a;
|
|
this._simpleName = str == null ? "" : str;
|
|
this._namespace = str2;
|
|
}
|
|
|
|
public static t a(String str) {
|
|
return (str == null || str.isEmpty()) ? i : new t(f.i.a(str), null);
|
|
}
|
|
|
|
public static t b(String str, String str2) {
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
return (str2 != null || !str.isEmpty()) ? new t(f.i.a(str), str2) : i;
|
|
}
|
|
|
|
public boolean c() {
|
|
return !this._simpleName.isEmpty();
|
|
}
|
|
|
|
public boolean d() {
|
|
return this._namespace == null && this._simpleName.isEmpty();
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (obj == null || obj.getClass() != t.class) {
|
|
return false;
|
|
}
|
|
t tVar = (t) obj;
|
|
String str = this._simpleName;
|
|
if (str == null) {
|
|
if (tVar._simpleName != null) {
|
|
return false;
|
|
}
|
|
} else if (!str.equals(tVar._simpleName)) {
|
|
return false;
|
|
}
|
|
String str2 = this._namespace;
|
|
return str2 == null ? tVar._namespace == null : str2.equals(tVar._namespace);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
String str = this._namespace;
|
|
return str == null ? this._simpleName.hashCode() : str.hashCode() ^ this._simpleName.hashCode();
|
|
}
|
|
|
|
public Object readResolve() {
|
|
String str;
|
|
return (this._namespace != null || ((str = this._simpleName) != null && !"".equals(str))) ? this : i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
if (this._namespace == null) {
|
|
return this._simpleName;
|
|
}
|
|
StringBuilder K = a.K("{");
|
|
K.append(this._namespace);
|
|
K.append("}");
|
|
K.append(this._simpleName);
|
|
return K.toString();
|
|
}
|
|
}
|