Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: Did the sort do anything? Followup-To: comp.lang.java.programmer Date: Mon, 16 May 2011 17:57:24 +1200 Organization: Geek Central Lines: 15 Message-ID: References: <9303hcFq0nU1@mid.individual.net> NNTP-Posting-Host: 118-92-95-178.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1305525444 27207 118.92.95.178 (16 May 2011 05:57:24 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Mon, 16 May 2011 05:57:24 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4145 In message , Patricia Shanahan wrote: > On 5/15/2011 7:32 PM, Lawrence D'Oliveiro wrote: > >> If, on the other hand, you were sorting immutable objects of a Java >> “reference” type where the key was the entire object state, then >> stability would indeed be irrelevant, notwithstanding such types are not >> considered “primitive”. > > Do you consider the result of System.identityHashCode(x) to be part of > the state of the object referenced by x? It is computed from the state, is it not?