Java Generics: Generic type defined as return type only

Aug 11, 2009 15:45

public X get(String property);

is great! You can use e.g.

item.get("active");

to get property with type you need...
Previous post Next post
Up