<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Java Enum Puzzler</title>
	<atom:link href="http://umairsaeed.com/2009/09/29/java-enum-puzzler/feed/" rel="self" type="application/rss+xml" />
	<link>http://umairsaeed.com/2009/09/29/java-enum-puzzler/</link>
	<description></description>
	<lastBuildDate>Fri, 20 Jan 2012 11:56:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://umairsaeed.com/2009/09/29/java-enum-puzzler/#comment-119</link>
		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 05:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://umairsd.wordpress.com/2009/09/29/java-enum-puzzler/#comment-119</guid>
		<description><![CDATA[tough one, but well explained. enum in java is very versatile than just a enumerated type  here is good link of &lt;a href=&quot;http://javarevisited.blogspot.com/2011/08/enum-in-java-example-tutorial.html&quot; rel=&quot;nofollow&quot;&gt;various examples of enum in java&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>tough one, but well explained. enum in java is very versatile than just a enumerated type  here is good link of <a href="http://javarevisited.blogspot.com/2011/08/enum-in-java-example-tutorial.html" rel="nofollow">various examples of enum in java</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umair</title>
		<link>http://umairsaeed.com/2009/09/29/java-enum-puzzler/#comment-4</link>
		<dc:creator><![CDATA[Umair]]></dc:creator>
		<pubDate>Thu, 01 Oct 2009 21:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://umairsd.wordpress.com/2009/09/29/java-enum-puzzler/#comment-4</guid>
		<description><![CDATA[I absolutely agree that for a vast majority of the cases this is a design issue, and the problem will be fixed with a different (and better) design. 

My point simply was that there may be a scenario where the design cannot be changed (for some reason). I&#039;ve tried to highlight a solution that would work for such a particular case.]]></description>
		<content:encoded><![CDATA[<p>I absolutely agree that for a vast majority of the cases this is a design issue, and the problem will be fixed with a different (and better) design. </p>
<p>My point simply was that there may be a scenario where the design cannot be changed (for some reason). I&#8217;ve tried to highlight a solution that would work for such a particular case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casper Bang</title>
		<link>http://umairsaeed.com/2009/09/29/java-enum-puzzler/#comment-3</link>
		<dc:creator><![CDATA[Casper Bang]]></dc:creator>
		<pubDate>Wed, 30 Sep 2009 20:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://umairsd.wordpress.com/2009/09/29/java-enum-puzzler/#comment-3</guid>
		<description><![CDATA[You can do this in Eclipse AFAIK. I&#039;ve run into this issue before with SUN&#039;s compiler which does not allow simple modeling of a state machine using Enum (through vararg constructor):

PlayerState.PLAY(STOP, PAUSE), PlayerState.STOP(PLAY),...]]></description>
		<content:encoded><![CDATA[<p>You can do this in Eclipse AFAIK. I&#8217;ve run into this issue before with SUN&#8217;s compiler which does not allow simple modeling of a state machine using Enum (through vararg constructor):</p>
<p>PlayerState.PLAY(STOP, PAUSE), PlayerState.STOP(PLAY),&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ppow</title>
		<link>http://umairsaeed.com/2009/09/29/java-enum-puzzler/#comment-2</link>
		<dc:creator><![CDATA[ppow]]></dc:creator>
		<pubDate>Wed, 30 Sep 2009 15:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://umairsd.wordpress.com/2009/09/29/java-enum-puzzler/#comment-2</guid>
		<description><![CDATA[It seems like in this code Resource is actually a ResourceContainer - that looks suspecious and may suggest that different design could solve the problem.

I think that this is more of design problem than Java issue - why would you need such a dependency? Can&#039;t you resolve it by using other objects? 

In essence you are trying to something like that:

public static final String A = new String(B);
public static final String B = new String(C);
public static final String C = new String(A);]]></description>
		<content:encoded><![CDATA[<p>It seems like in this code Resource is actually a ResourceContainer &#8211; that looks suspecious and may suggest that different design could solve the problem.</p>
<p>I think that this is more of design problem than Java issue &#8211; why would you need such a dependency? Can&#8217;t you resolve it by using other objects? </p>
<p>In essence you are trying to something like that:</p>
<p>public static final String A = new String(B);<br />
public static final String B = new String(C);<br />
public static final String C = new String(A);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

