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

php - cannot display multiple markers in google maps v3 from traceroute result -

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

css - Text drops down with smaller window -