<?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 for .net-guys or foreach in Java</title>
	<atom:link href="http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/</link>
	<description>a mostly .NET but also some other cool techs blog</description>
	<lastBuildDate>Fri, 14 May 2010 10:54:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kris</title>
		<link>http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/comment-page-1/#comment-7964</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Wed, 06 Jan 2010 20:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/#comment-7964</guid>
		<description>just stumbled upon this page as I was looking for a simpler way to do this (and also figure out the &#039;getIterator&#039; vs &#039;iterator&#039; business), and you&#039;ve given a great way. Thanks! I&#039;m a .NET guy normally so I&#039;ll be giving your blog a good read!</description>
		<content:encoded><![CDATA[<p>just stumbled upon this page as I was looking for a simpler way to do this (and also figure out the &#8216;getIterator&#8217; vs &#8216;iterator&#8217; business), and you&#8217;ve given a great way. Thanks! I&#8217;m a .NET guy normally so I&#8217;ll be giving your blog a good read!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Schröter</title>
		<link>http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/comment-page-1/#comment-3627</link>
		<dc:creator>Benjamin Schröter</dc:creator>
		<pubDate>Wed, 29 Apr 2009 09:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/#comment-3627</guid>
		<description>@Arne: That makes sense. In .net (and my mind) the convention is exactly the other way: Properties are .net constructs and do not need a prefix for getter and setters. But when you have to do a lot of work to provide some date you will call the method GetSomething() instead of using a Something-property.</description>
		<content:encoded><![CDATA[<p>@Arne: That makes sense. In .net (and my mind) the convention is exactly the other way: Properties are .net constructs and do not need a prefix for getter and setters. But when you have to do a lot of work to provide some date you will call the method GetSomething() instead of using a Something-property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arne</title>
		<link>http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/comment-page-1/#comment-3621</link>
		<dc:creator>Arne</dc:creator>
		<pubDate>Wed, 29 Apr 2009 06:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ticklishtechs.net/2009/04/28/java-for-net-guys-or-foreach-in-java/#comment-3621</guid>
		<description>About the iterator() vs. getIterator() issue: as I understand it I&#039;d say that getters are meant to be used for &quot;fetching&quot; properties of an object (for JavaBeans its even specified this way in the JavaBeans spec), i.e. getPort() on a java.net.URL returns its port as an integer. Iterators in contrast are not a property, but a different interface to access a collection, thus you can&#039;t just fetch &quot;the iterator&quot; of a collection, there&#039;s some code involved in creating it, and there might by more than one for each collection. The size of a collection (returned by size()) is a similar case, since the size is derived from the contents of a collection.
But from my experience with code &quot;out there&quot; I&#039;d say that this rule isn&#039;t always followed very strictly.</description>
		<content:encoded><![CDATA[<p>About the iterator() vs. getIterator() issue: as I understand it I&#8217;d say that getters are meant to be used for &#8220;fetching&#8221; properties of an object (for JavaBeans its even specified this way in the JavaBeans spec), i.e. getPort() on a java.net.URL returns its port as an integer. Iterators in contrast are not a property, but a different interface to access a collection, thus you can&#8217;t just fetch &#8220;the iterator&#8221; of a collection, there&#8217;s some code involved in creating it, and there might by more than one for each collection. The size of a collection (returned by size()) is a similar case, since the size is derived from the contents of a collection.<br />
But from my experience with code &#8220;out there&#8221; I&#8217;d say that this rule isn&#8217;t always followed very strictly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
