Menu

#6 paramertize generics in handler classes

open
nobody
None
2
2008-01-24
2008-01-24
No

If useGenerics=true, please parametrize Map type in handler classes, for example:

public static Map<String, ?> describe(SomeType object) {
Map<String, Object> result = new HashMap<String, Object>(...);
[...]
public static void populate(SomeType object, Map<String, ?> properties) {
[...]
public static void carefulPopulate(SomeType object, Map<String, ?> properties) {
[...]

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.