On Friday, 11/15/2002 at 01:43 EST, [EMAIL PROTECTED] wrote:
> We could use a Hashtable, I guess, if we made sure the .equals method 
was
> overloaded appropriately.

Alternatively, code your own hashing mechanism -- we did that in several 
places in Xalan, where hashing was the right answer but Sun's Hashtable 
class wasn't. Remember, you don't have to use the canned solutions that 
come with the JDK; home cooking is more work but sometimes tastes a lot 
better.

There may be other lookup mechanisms worth considering. Time to grab a 
copy of Knuth's "sorting and searching" tome and review the 
alternatives...


 ______________________________________
Joe Kesselman  / IBM Research

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to