private Class<T> t;
public Class<T> getT() { Type type = getClass().getGenericSuperclass(); Type[] parameter = ((ParameterizedType) type).getActualTypeArguments(); return (Class<T>)parameter[0] }
private Class<T> t;
public Class<T> getT() { Type type = getClass().getGenericSuperclass(); Type[] parameter = ((ParameterizedType) type).getActualTypeArguments(); return (Class<T>)parameter[0] }