mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
21 lines
610 B
Java
21 lines
610 B
Java
|
package io.sentry;
|
||
|
|
||
|
import java.lang.reflect.InvocationTargetException;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class OptionsContainer<T> {
|
||
|
private final Class<T> clazz;
|
||
|
|
||
|
public static <T> OptionsContainer<T> create(Class<T> cls) {
|
||
|
return new OptionsContainer<>(cls);
|
||
|
}
|
||
|
|
||
|
private OptionsContainer(Class<T> cls) {
|
||
|
this.clazz = cls;
|
||
|
}
|
||
|
|
||
|
public T createInstance() throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {
|
||
|
return this.clazz.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
|
||
|
}
|
||
|
}
|