DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27992>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27992 FIFO ordering in ActionMessages ------- Additional Comments From [EMAIL PROTECTED] 2004-03-26 23:59 ------- Hi Niall, No offence taken. I knew my attempt was more of a "brute force fix" rather than an "elegant best practise". So, what you say makes sense (regarding adding property to the inner class). Quoting your code: > // do sort stuff first as per get() method > > // Create list of properties > for (int i = 0; i < actionItems.size(); i++) { > ActionMessageItem ami = (ActionMessageItem)actionItems.get(i); > results.add(ami.getProperty()); > } > > return results.iterator(); Since a property can have more than one AMI attached to it, we should check for uniqueness of the entries in the results ArrayList. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]