Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "javax.swing.JSnarker" Newsgroups: comp.lang.java.programmer Subject: Re: Did the sort do anything? Date: Mon, 16 May 2011 03:35:02 -0400 Organization: media lab? Lines: 23 Message-ID: References: <9303hcFq0nU1@mid.individual.net> NNTP-Posting-Host: Ak7xW7rxcb3Y6UXwoZfR1w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Forte Agent 2.0/32.652 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4150 On 16/05/2011 1:57 AM, Lawrence D'Oliveiro wrote: > 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? Not unless the object's address is considered a part of its state. :) -- public final class JSnarker extends JComponent A JSnarker is an NNTP-aware component that asynchronously provides snarky output when the Ego.needsPuncturing() event is fired in cljp.