I have a list of class types T and the following method that is called for the the class types:
<T extends PersistentEntity> void subscribe(Class<T> clazz, HBaseStreamFactory factory) {
final DisposablePublisher<Tuple.Tuple2<T,T>> publisher
= new DisposablePublisher<>(factory.createPublisher(?));
}
The method createPublisher() should receive the class type of Tuple.Tuple2< T,T> instead of ?, how can I obtain it from knowing the clazz?