>>>>What is SequencedHashtable used for? >>> >>>It keeps track of the order in which elements are added to a >>>Hashtable. >>TreeMap uses a Red-Black tree to keep the keys of the map in order, >>either according to their natural order or according to a given >>Comparator. >Notice the difference: "the order in which elements are added" versus >"according to their natural order". This means that if I enter the Strings >"a", "c", "b" (in that order), they will return: SequencedHashtable: a,c,b >TreeMap: a,b,c Perhaps not as efficiently or cleanly, but couldn't that be handled via a custom Comparator on the TreeMap? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
- Re: Util dependency on Collections? Charles Burdick
- Re: Util dependency on Collections? Lavandowska
- Re: Util dependency on Collections? bayard
- Re: Util dependency on Collections? Charles Burdick
- Re: Util dependency on Collections? Jari Worsley
- Re: Util dependency on Collections? Lavandowska
- Re: Util dependency on Collections? Jari Worsley
- Re: Util dependency on Collections? Rodney Waldhoff
- Re: Util dependency on Collections? Jari Worsley
- RE: Util dependency on Collections? Paulo Gaspar
- Re: Util dependency on Collections? James Strachan
- Re: Util dependency on Collections? Jari Worsley
- Re: Util dependency on Collections? Jim Cheesman
- Re: Util dependency on Collections? Jari Worsley
- Re: Util dependency on Collectio... Jim Cheesman
- Re: Util dependency on Collectio... bayard
- [Collections] NumericCompara... Jim Cheesman
- Re: [Collections] NumericCom... James Strachan