Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GenericClass<T> implements GenericClassInterface<T>
- {
- public T myMethod(String typeID) {
- T test = _get_test_value_; // here I use jackson to retrieve T de-serialized from JSON
- return T;
- }
- }
- public class SpecificClass extends GenericClass<CustomType> implements SpecificClassInterface
- {
- public CustomType getIstance(String typeID) {
- return super.myMethod(typeID);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement