<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "getClass() vs. Instanceof in equals()"]]></title>
		<link>http://forums.hotjoe.com/posts/list/3.page</link>
		<description><![CDATA[Latest messages posted in the topic "getClass() vs. Instanceof in equals()"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>getClass() vs. Instanceof in equals()</title>
				<description><![CDATA[ As we know there are differing opinions on what is better to use in overriding equals(). getClass() or instanceof for argument type checking.<br /> <br /> I would like to know if there is anyone who is strongly in favor of using instanceof instead of getClass()?]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/688/2587.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/688/2587.page</link>
				<pubDate><![CDATA[Mon, 8 Feb 2010 12:02:56]]> GMT</pubDate>
				<author><![CDATA[ andrew222]]></author>
			</item>
			<item>
				<title>Re:getClass() vs. Instanceof in equals()</title>
				<description><![CDATA[ I'm not sure I'm following you.  I override equals() and, within there, check to make sure that I'm comparing the same type of class as the current class.  I do this with instanceof.  This allows derived classes to work too.  If your derived class doesn't like the "parent" equals() then it should supply it's own.<br /> <br /> Is that what you mean?]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/688/2588.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/688/2588.page</link>
				<pubDate><![CDATA[Mon, 8 Feb 2010 15:10:13]]> GMT</pubDate>
				<author><![CDATA[ stdunbar]]></author>
			</item>
	</channel>
</rss>
