<?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: Complex Constants in Java</title>
	<atom:link href="http://recurser.com/articles/2007/12/05/complex-constants-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://recurser.com/articles/2007/12/05/complex-constants-in-java/</link>
	<description></description>
	<pubDate>Sun, 07 Sep 2008 14:40:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Felix</title>
		<link>http://recurser.com/articles/2007/12/05/complex-constants-in-java/#comment-129</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Sat, 16 Feb 2008 11:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/12/05/complex-constants-in-java/#comment-129</guid>
		<description>Making an object final doesn't mean you can't modify it. You just can't assign a different object to a final variable. So the keys and values in your example are not constant, because you can change the HashMap as you like...

My solution would be to create a Proxy object for HashMap or whatever you use and make it read-only...

And why are you using ArrayList if you dont want to add items to the list?  A simple array would do (new String[]{ "value1", "value2" ...})</description>
		<content:encoded><![CDATA[<p>Making an object final doesn&#8217;t mean you can&#8217;t modify it. You just can&#8217;t assign a different object to a final variable. So the keys and values in your example are not constant, because you can change the HashMap as you like&#8230;</p>
<p>My solution would be to create a Proxy object for HashMap or whatever you use and make it read-only&#8230;</p>
<p>And why are you using ArrayList if you dont want to add items to the list?  A simple array would do (new String[]{ &#8220;value1&#8221;, &#8220;value2&#8221; ...})</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.276 seconds -->
