what-the-bank/sources/o/C15439gqh.java

60 lines
2.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.text.ParseException;
import java.util.Date;
/* renamed from: o.gqh, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15439gqh extends AbstractC15346gnv implements InterfaceC15341gnq {
public AbstractC15315gnE e;
private C15439gqh(AbstractC15315gnE abstractC15315gnE) {
if (!(abstractC15315gnE instanceof C15320gnN) && !(abstractC15315gnE instanceof C15349gny)) {
throw new IllegalArgumentException("unknown object passed to Time");
}
this.e = abstractC15315gnE;
}
public static C15439gqh e(Object obj) {
if (obj == null || (obj instanceof C15439gqh)) {
return (C15439gqh) obj;
}
if (obj instanceof C15320gnN) {
return new C15439gqh((C15320gnN) obj);
}
if (obj instanceof C15349gny) {
return new C15439gqh((C15349gny) obj);
}
StringBuilder sb = new StringBuilder("unknown object in factory: ");
sb.append(obj.getClass().getName());
throw new IllegalArgumentException(sb.toString());
}
public final Date c() {
try {
AbstractC15315gnE abstractC15315gnE = this.e;
if (abstractC15315gnE instanceof C15320gnN) {
return ((C15320gnN) abstractC15315gnE).e();
}
return ((C15349gny) abstractC15315gnE).e();
} catch (ParseException e) {
StringBuilder sb = new StringBuilder("invalid date string: ");
sb.append(e.getMessage());
throw new IllegalStateException(sb.toString());
}
}
public final String toString() {
AbstractC15315gnE abstractC15315gnE = this.e;
if (abstractC15315gnE instanceof C15320gnN) {
return ((C15320gnN) abstractC15315gnE).a();
}
return ((C15349gny) abstractC15315gnE).a();
}
@Override // o.AbstractC15346gnv, o.InterfaceC15342gnr
public final AbstractC15315gnE i() {
return this.e;
}
}