Hello, I was wondering if there is a way to add a custom data type for a non extendable class. Specifically I’m thinking of java.util.EnumSet.
I often use Enums in my object classes and I occasionally employ EnumSets when the case requires it. Unfortunately EnumSet is non extendable so I can’t define a subclass and then use that as java type in the modeller. Is there a way to hack the runtime into returning an EnumSet using a custom ValueType or ExtenedType for multiple attributes (it does work if there’s only one attribute using EnumSet but as soon as you define two the runtime gets confused). At the moment I’m just extending a HashSet<E extends Enum<E>> as a workaround but every time I see that I feel guilty not being able to use the ‘proper’ set collection for enums. Thank you, Riccardo De Menna