-
Aug 30th, 2009, 04:34 PM
#1
builder.addImplementsType
Hi,
I would like to make a ITD that makes a file implements a Comparator so in my code i use:
builder.addImplementsType(new JavaType("java.util.Comparator"));
That works fine, but i would like to know if there´s a way to implement a generic interface, like Comparator<String>, JavaType name´s with < are not allowed.
I´m missing something??
Regards
-
Sep 2nd, 2009, 01:36 PM
#2
JavaType offers parameterization support via the overloaded constructor which takes a list of parameters, themselves also JavaType instances.
-
Sep 2nd, 2009, 01:59 PM
#3
Thanks Ben, I´ll use it in the second version of the comparator plugin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules