<?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"
	>
<channel>
	<title>Comments on: Use Java 5 for with an Enumeration</title>
	<atom:link href="http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/</link>
	<description>Programming is hard</description>
	<pubDate>Sat, 22 Nov 2008 09:54:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Octavian NITA</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-60178</link>
		<dc:creator>Octavian NITA</dc:creator>
		<pubDate>Mon, 03 Mar 2008 23:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-60178</guid>
		<description>Sorry, the address is: http://tavi-mytechblog.blogspot.com/</description>
		<content:encoded><![CDATA[<p>Sorry, the address is: <a href="http://tavi-mytechblog.blogspot.com/" rel="nofollow">http://tavi-mytechblog.blogspot.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Octavian NITA</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-60177</link>
		<dc:creator>Octavian NITA</dc:creator>
		<pubDate>Mon, 03 Mar 2008 23:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-60177</guid>
		<description>See some enhancement at http://tavi-mytechblog.blogspot.com/... eventually let me know what you think...

Thanks</description>
		<content:encoded><![CDATA[<p>See some enhancement at <a href="http://tavi-mytechblog.blogspot.com/.." rel="nofollow">http://tavi-mytechblog.blogspot.com/..</a>. eventually let me know what you think&#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javablog &#187; Enumeration and Iterable</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-40959</link>
		<dc:creator>Javablog &#187; Enumeration and Iterable</dc:creator>
		<pubDate>Sun, 25 Nov 2007 22:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-40959</guid>
		<description>[...] Update: I somehow managed to miss Stephan&#8217;s recent post and Binkley&#8217;s older post. [...]</description>
		<content:encoded><![CDATA[<p>[...] Update: I somehow managed to miss Stephan&#8217;s recent post and Binkley&#8217;s older post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37686</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Wed, 07 Nov 2007 10:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37686</guid>
		<description>I guess Collections.list() returns a new List not a wrapper around the Enumeration. So this will create a new object and a.) the Enumeration is iterated (which might be expensiv, think of 1 billion entries, while you only want the first 10) b.) memory for the entries is created (think of 1 billioen entries again, while you only want the first 10).</description>
		<content:encoded><![CDATA[<p>I guess Collections.list() returns a new List not a wrapper around the Enumeration. So this will create a new object and a.) the Enumeration is iterated (which might be expensiv, think of 1 billion entries, while you only want the first 10) b.) memory for the entries is created (think of 1 billioen entries again, while you only want the first 10).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. Graversen</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37685</link>
		<dc:creator>Dr. Graversen</dc:creator>
		<pubDate>Wed, 07 Nov 2007 10:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37685</guid>
		<description>What is wrong with Collections.list()  it's been around since jdk 1.4


 ArrayList list(Enumeration e)

Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration.

http://supercsv.sourceforge.net/</description>
		<content:encoded><![CDATA[<p>What is wrong with Collections.list()  it&#8217;s been around since jdk 1.4</p>
<p> ArrayList list(Enumeration e)</p>
<p>Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration.</p>
<p><a href="http://supercsv.sourceforge.net/" rel="nofollow">http://supercsv.sourceforge.net/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Octavian NITA</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37669</link>
		<dc:creator>Octavian NITA</dc:creator>
		<pubDate>Wed, 07 Nov 2007 07:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37669</guid>
		<description>Incredibly simple and useful!

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Incredibly simple and useful!</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37588</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Tue, 06 Nov 2007 20:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37588</guid>
		<description>Ah yes, as I said it's easy to do. Would be nice if Java supported Adapter/Delegation classes with some nice syntactic sugar. 

At least static imports shorten the code to use the Adapter.</description>
		<content:encoded><![CDATA[<p>Ah yes, as I said it&#8217;s easy to do. Would be nice if Java supported Adapter/Delegation classes with some nice syntactic sugar. </p>
<p>At least static imports shorten the code to use the Adapter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B. K. Oxley (binkley)</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37578</link>
		<dc:creator>B. K. Oxley (binkley)</dc:creator>
		<pubDate>Tue, 06 Nov 2007 19:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37578</guid>
		<description>Another example:

http://binkley.blogspot.com/2004/08/supporting-old-code.html</description>
		<content:encoded><![CDATA[<p>Another example:</p>
<p><a href="http://binkley.blogspot.com/2004/08/supporting-old-code.html" rel="nofollow">http://binkley.blogspot.com/2004/08/supporting-old-code.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37507</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Tue, 06 Nov 2007 08:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37507</guid>
		<description>Thanks
-stephan</description>
		<content:encoded><![CDATA[<p>Thanks<br />
-stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Easter</title>
		<link>http://www.codemonkeyism.com/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37487</link>
		<dc:creator>Michael Easter</dc:creator>
		<pubDate>Tue, 06 Nov 2007 04:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.reposita.org/archives/2007/11/03/use-java-5-for-with-an-enumertion/#comment-37487</guid>
		<description>Stephan,

Nice job!  I hadn't considered a way to bring Enumeration into Java 5

Michael E.</description>
		<content:encoded><![CDATA[<p>Stephan,</p>
<p>Nice job!  I hadn&#8217;t considered a way to bring Enumeration into Java 5</p>
<p>Michael E.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
