Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!203.109.252.33.MISMATCH!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: Tue, 17 May 2011 09:11:19 +1200 Organization: Geek Central Lines: 24 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 1305580279 26454 118.92.95.178 (16 May 2011 21:11:19 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Mon, 16 May 2011 21:11:19 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4170 In message , Patricia Shanahan wrote: > System.identityHashCode(x) does not necessarily return the same as > x.hashCode() ... It says it does : The hash code returned is the same one that would be returned by the method java.lang.Object.hashCode(), whether or not the object's class has overridden hashCode(). >> “Distinct” would presumably mean “not equal”. > > It means "not the same object". It means “can be distinguished”. That is the literal meaning of “distinct”. > For example, equality for Integer is based only on the numeric value of > the integer the object represents. Which brings us back to the point I made before, about whether the sort key is computed from the entire value or not.