58 lines
1.3 KiB
Java
58 lines
1.3 KiB
Java
package com.facetec.sdk;
|
|
|
|
import java.lang.reflect.ParameterizedType;
|
|
import java.lang.reflect.Type;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class fv<T> {
|
|
private Type a;
|
|
private Class<? super T> b;
|
|
private int d;
|
|
|
|
public fv() {
|
|
Type genericSuperclass = getClass().getGenericSuperclass();
|
|
if (genericSuperclass instanceof Class) {
|
|
throw new RuntimeException("Missing type parameter.");
|
|
}
|
|
Type c = et.c(((ParameterizedType) genericSuperclass).getActualTypeArguments()[0]);
|
|
this.a = c;
|
|
this.b = (Class<? super T>) et.e(c);
|
|
this.d = this.a.hashCode();
|
|
}
|
|
|
|
private fv(Type type) {
|
|
Type c = et.c((Type) er.a(type));
|
|
this.a = c;
|
|
this.b = (Class<? super T>) et.e(c);
|
|
this.d = this.a.hashCode();
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
return (obj instanceof fv) && et.c(this.a, ((fv) obj).a);
|
|
}
|
|
|
|
public final String toString() {
|
|
return et.b(this.a);
|
|
}
|
|
|
|
public static fv<?> b(Type type) {
|
|
return new fv<>(type);
|
|
}
|
|
|
|
public static <T> fv<T> b(Class<T> cls) {
|
|
return new fv<>(cls);
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return this.d;
|
|
}
|
|
|
|
public final Type b() {
|
|
return this.a;
|
|
}
|
|
|
|
public final Class<? super T> a() {
|
|
return this.b;
|
|
}
|
|
}
|