• Post Reply Bookmark Topic Watch Topic
  • New Topic

<T> T get(Class<T> responseType), what is this method will return  RSS feed

 
jacob deiter
Ranch Hand
Posts: 588
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the below method means

<T> T get(Class<T> responseType)


I know Generic is used here, but what the type this method will return?

https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you been through the generics sections of the Java® Tutorials? Particularly the parts called generic methods?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!