Posted by cowwoc
on June 24, 2008 at 12:13 AM PDT
I'd really appreciate it if someone could suggest a workaround for the following problem...
A point is a Map
I want to express a List of points. So now I'm forced to refer to a
List> in my code which makes it totally unreadable.
class Points implements Map isn't an option because it prevents me from using AbstractMap as follows:
Points getPoints()<br />
return new AbstractMap()<br />
Is there a workaround for this problem? I understand that introducing typedef to Java is problematic (even if its scope is limited to a single Java file at a time) but isn't the current situation even worse? Does anyone have a better idea?