Java 5.0 generics

Jan 25, 2005 16:24


I like having typed containers, but JEEZ they could have fixed the syntax!  As far as I can tell, there are NO type abbreviations, and you have to use the fully-parameterized type when creating an object, leading to this code:

private HashMap< Pair, Set> origThrowMap =
        new HashMap
, Set>();

And what I want to do isn't all that complicated!  Map a pair to a set!

rant, java

Previous post Next post
Up