How can we describe T<S> as return type for a method using generics in java -


how can describe t<s> return type method

<t,s> t<s> getresult(class<t> tclass, class<s> sclass) 

you can't, basically. there's no way of describing "a generic type 1 type parameter" , using this.


Comments

Popular posts from this blog

css - Text drops down with smaller window -

php - Boolean search on database with 5 million rows, very slow -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -