Hi Victor,
> List<IParameter> parameters = new ArrayList<IParameter>();
> parameters.add(Parameters.PREC.LOW);
> parameters.add(Parameters.FLEX.HIGH);
>
I gave it a try, but I think we are stuck when we try to restrict the
List elms to be of IParameters, which in turn is a collection of Enum
types. What about something like this:
List parameters = new ArrayList();
parameters.add(FLEX.EXTRA_HIGH.valor());
parameters.add(PREC.HIGH.valor());
It does leaves a trap of being able to add other types to the List, I
suppose the remedy would be to annotate around it to make sure only
valid enum types are added.
greenbean
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---