I am new to generics and i have a method like below
public <T1, T2> void test(Details<T1, T2> reportDetails, List<T1> ent1, List<T2> ent2)
Converter<? super T1, Box> conv1
Converter<? super T2, Box> conv2
converter is of type org.springframework.core.convert.converter
This is actually for downloading a reports, T1 is one report and T2 is another report and i want it to be more generic so that if more table gets added i don't have to add new types I need T1, T2 to be dynamic that is i want one generic which will server both T1 and T2 so that i don't have to add a new type(T3) if required in future. is there a way to do that ?
to be more clear : I need a way where i can create a generalised list of Converter objects which can store both T1 and T2 so that i dont have to have T1 and T2 and i can have only one.