Ah!. It is nice having custom code to fix this unique -D problem: someone won't change it back to HashMap and break it.
On Wed, Dec 29, 2010 at 10:43 PM, Ted Dunning <[email protected]> wrote: > Actually, I think that the Tree collections order things according the > comparator that is supplied explicitly or implicitly. Ties cause > over-writing. > > The LinkedHashMap will preserve order of addition. > > On Wed, Dec 29, 2010 at 9:57 PM, Jeff Eastman > <[email protected]>wrote: > >> Good point. I thought the logic was awkward, testing startsWith twice, so I >> went with the more direct solution. >> >> On 12/29/10 6:29 PM, Lance Norskog wrote: >> >>> The Tree Map and Set classes preserve the order of addition to the >>> Map/Set. >> >> > -- Lance Norskog [email protected]
