<?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: Java Enums can implement Interfaces	</title>
	<atom:link href="https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/</link>
	<description>Java/J2EE Software Development and Technology Discussion Blog</description>
	<lastBuildDate>Wed, 18 Apr 2018 04:22:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: priya		</title>
		<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/comment-page-1/#comment-197442</link>

		<dc:creator><![CDATA[priya]]></dc:creator>
		<pubDate>Wed, 18 Apr 2018 04:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3430#comment-197442</guid>

					<description><![CDATA[Enumerations serve the purpose of representing a group of named constants in a programming language. An enum type is a special data type that enables for a variable to be a set of predefined objects or constants.]]></description>
			<content:encoded><![CDATA[<p>Enumerations serve the purpose of representing a group of named constants in a programming language. An enum type is a special data type that enables for a variable to be a set of predefined objects or constants.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Luis Matos		</title>
		<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/comment-page-1/#comment-6239</link>

		<dc:creator><![CDATA[Luis Matos]]></dc:creator>
		<pubDate>Wed, 26 Jun 2013 12:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3430#comment-6239</guid>

					<description><![CDATA[Thanks a lot, that&#039;s exactly what I was searching for. Very helpful.
Did you ever check whether there was a better way to work with the static Enum.values()? It would surely improve the solution.]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot, that&#8217;s exactly what I was searching for. Very helpful.<br />
Did you ever check whether there was a better way to work with the static Enum.values()? It would surely improve the solution.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David O'Meara		</title>
		<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/comment-page-1/#comment-4622</link>

		<dc:creator><![CDATA[David O'Meara]]></dc:creator>
		<pubDate>Fri, 17 Jun 2011 02:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3430#comment-4622</guid>

					<description><![CDATA[agreed, but I&#039;m talking about interfaces allowing common behaviour between different enumerated types _because_ they are classes. Hence surprising but should not have been :)]]></description>
			<content:encoded><![CDATA[<p>agreed, but I&#8217;m talking about interfaces allowing common behaviour between different enumerated types _because_ they are classes. Hence surprising but should not have been 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bogdan Marian		</title>
		<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/comment-page-1/#comment-4619</link>

		<dc:creator><![CDATA[Bogdan Marian]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 06:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3430#comment-4619</guid>

					<description><![CDATA[Hello,
Please note that the Java tutorials clearly states that an enum is in fact a class, so of course it can implement an interface ;) (http://download.oracle.com/javase/tutorial/java/javaOO/enum.html - &quot;... The enum declaration defines a class ...&quot;).]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
Please note that the Java tutorials clearly states that an enum is in fact a class, so of course it can implement an interface 😉 (<a href="http://download.oracle.com/javase/tutorial/java/javaOO/enum.html" rel="nofollow ugc">http://download.oracle.com/javase/tutorial/java/javaOO/enum.html</a> &#8211; &#8220;&#8230; The enum declaration defines a class &#8230;&#8221;).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David O'Meara		</title>
		<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/comment-page-1/#comment-4617</link>

		<dc:creator><![CDATA[David O'Meara]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 01:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3430#comment-4617</guid>

					<description><![CDATA[absolutely, and my initial mistake was in thinking a Java enum was something special or separate within the Java system. As you have said the byte code threats it is Class and it may be that modifying the code to be aware of the Enum superclass (maybe mix in some Generics) could allow me to improve the final code rather than calling the static Enum.values() and then accepting an array of an interface type.
I don&#039;t see this as being widely used, but I found it a handy feature.]]></description>
			<content:encoded><![CDATA[<p>absolutely, and my initial mistake was in thinking a Java enum was something special or separate within the Java system. As you have said the byte code threats it is Class and it may be that modifying the code to be aware of the Enum superclass (maybe mix in some Generics) could allow me to improve the final code rather than calling the static Enum.values() and then accepting an array of an interface type.<br />
I don&#8217;t see this as being widely used, but I found it a handy feature.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kjordan		</title>
		<link>https://www.selikoff.net/2011/06/15/java-enums-can-implement-interfaces/comment-page-1/#comment-4616</link>

		<dc:creator><![CDATA[kjordan]]></dc:creator>
		<pubDate>Wed, 15 Jun 2011 22:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=3430#comment-4616</guid>

					<description><![CDATA[Well, an enum does just become in byte code a compiler generated class that extends an actual class called Enum where each value inside the enum is just a static instance inside that generated class which are inserted into an array that values() returns.  This means since it already extends Enum you can&#039;t extend anything else, but as you&#039;v realized you can do anything else to it that you can do to a regular class.]]></description>
			<content:encoded><![CDATA[<p>Well, an enum does just become in byte code a compiler generated class that extends an actual class called Enum where each value inside the enum is just a static instance inside that generated class which are inserted into an array that values() returns.  This means since it already extends Enum you can&#8217;t extend anything else, but as you&#8217;v realized you can do anything else to it that you can do to a regular class.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
