Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder5.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Gheerax IV Newsgroups: comp.lang.java.programmer Subject: Re: Did the sort do anything? Date: Tue, 17 May 2011 06:58:56 +0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <9303hcFq0nU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 17 May 2011 06:58:56 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="e+MjtQbZAG87CgTw7s/NLA"; logging-data="24184"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UlrZhTxTIIhcil1KtVcEoLZ8vWtzjU+0=" User-Agent: slrn/0.9.8.1pl1 (Debian) Cancel-Lock: sha1:XhiKb/e3BzteF4CD8i9vHU9Rkf4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4193 On Tue, 17 May 2011 09:11:19 +1200, Lawrence D'Oliveiro wrote: > 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. Are you Twisted?