Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class GenericClass<T> implements GenericClassInterface<T>
  2. {
  3. public T myMethod(String typeID) {
  4. T test = _get_test_value_; // here I use jackson to retrieve T de-serialized from JSON
  5. return T;
  6. }
  7. }
  8.  
  9. public class SpecificClass extends GenericClass<CustomType> implements SpecificClassInterface
  10. {
  11. public CustomType getIstance(String typeID) {
  12. return super.myMethod(typeID);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement