Announcement Announcement Module
Collapse
No announcement yet.
builder.addImplementsType Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    JavaType offers parameterization support via the overloaded constructor which takes a list of parameters, themselves also JavaType instances.

    Comment


    • #3
      Thanks Ben, I´ll use it in the second version of the comparator plugin

      Comment

      Working...
      X