<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Best Practices: compareTo consistent with equals</title>
	<atom:link href="http:///2007/09/02/compareto-consistent-with-equals/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.palantirtech.com/2007/09/02/compareto-consistent-with-equals/</link>
	<description>Articles from the Engineering Group at Palantir Technologies</description>
	<lastBuildDate>Tue, 24 Jan 2012 09:51:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Philippe</title>
		<link>http://blog.palantirtech.com/2007/09/02/compareto-consistent-with-equals/comment-page-1/#comment-91</link>
		<dc:creator>Philippe</dc:creator>
		<pubDate>Wed, 12 Sep 2007 08:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.palantirtech.com/2007/07/28/compareto-consistent-with-equals/#comment-91</guid>
		<description>Nice tip. I have three little remarks: 

Lines 10-11: &quot;instanceof&quot; returns false if the object &quot;o&quot; is null, so the first line is useless.

Line 12: the variable &quot;d&quot; should be &quot;o&quot; 

Line 10: you can optimize (a bit) the method by adding this code
&quot;if (this == o) return true;&quot; on the first line. It will return true if you check an object against itself.</description>
		<content:encoded><![CDATA[<p>Nice tip. I have three little remarks: </p>
<p>Lines 10-11: &#8220;instanceof&#8221; returns false if the object &#8220;o&#8221; is null, so the first line is useless.</p>
<p>Line 12: the variable &#8220;d&#8221; should be &#8220;o&#8221; </p>
<p>Line 10: you can optimize (a bit) the method by adding this code<br />
&#8220;if (this == o) return true;&#8221; on the first line. It will return true if you check an object against itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://blog.palantirtech.com/2007/09/02/compareto-consistent-with-equals/comment-page-1/#comment-87</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 04 Sep 2007 20:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.palantirtech.com/2007/07/28/compareto-consistent-with-equals/#comment-87</guid>
		<description>Don&#039;t forget that the same advice applies to hashCode as well.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget that the same advice applies to hashCode as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

