I have a list of objects of type Symbol, Side, etc. They are stored
in a list. A Java ArrayList <Field>. I can add () and get () with no
trouble. Now I want to add these fields to my NewOrderSingleMessage.
NewOrderSingle message = new NewOrderSingle ();
int length = list.length ();
for (int i = 0; i < length; i++)
message.set (list.get (i));
This will not go. The compiler says that list.get () returns type
Field, and message.set () only has signatures for the derived
classes. What do I do?
Aaron Hirshberg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Financial Information eXchange" group.
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/FIX-Protocol?hl=en
-~----------~----~----~----~------~----~------~--~---