In the following code, I take a class T as generic "argument" and I need to return something like "T.class" in one of the methods. How do I do it?
public abstract class GenericLogPartitioner<K, V, T extends FileInputFormat<K, V>> extends LogPartitioner {
@Override
protected Class<? extends FileInputFormat> getInputFormatClass() {
return T.getClass(); //what should be here. I need to return T
}