Edward A. Lee wrote:
Why not use LinkedHashSet?  It would seem that this would
solve the problem without a shadow data structure.
Having two data structures representing the same information
introduces a major risk: that they get out of sync.  You have
to think through all possible exception scenarios that could
lead to an object being in one set and not in the other...
This could be quite tricky.  Also, I would assume that
LinkedHashSet would be more efficient...
LinkedHashSet doesn't have a method like LinkedList's |void| |*add <http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html#add%28int,%20E%29>*(int index, E <http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html> element)| ,
which NamedList needs.

Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to