15 lines
628 B
Java
15 lines
628 B
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import java.lang.reflect.Type;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class ez {
|
||
|
public static boolean d(Type type) {
|
||
|
return (type instanceof Class) && ((Class) type).isPrimitive();
|
||
|
}
|
||
|
|
||
|
public static <T> Class<T> e(Class<T> cls) {
|
||
|
return cls == Integer.TYPE ? Integer.class : cls == Float.TYPE ? Float.class : cls == Byte.TYPE ? Byte.class : cls == Double.TYPE ? Double.class : cls == Long.TYPE ? Long.class : cls == Character.TYPE ? Character.class : cls == Boolean.TYPE ? Boolean.class : cls == Short.TYPE ? Short.class : cls == Void.TYPE ? Void.class : cls;
|
||
|
}
|
||
|
}
|