<?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: JDK 5 - auto-boxing best practices</title>
	<atom:link href="http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/</link>
	<description>Brian Pontarelli</description>
	<pubDate>Wed, 07 Jan 2009 01:57:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Chandra Watson</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-35401</link>
		<dc:creator>Chandra Watson</dc:creator>
		<pubDate>Thu, 13 Nov 2008 03:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-35401</guid>
		<description>83rzx3ig751h7kbb</description>
		<content:encoded><![CDATA[<p>83rzx3ig751h7kbb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Pontarelli</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-3033</link>
		<dc:creator>Brian Pontarelli</dc:creator>
		<pubDate>Wed, 17 Jan 2007 22:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-3033</guid>
		<description>Sorry for the delayed response on this... Autoboxing happens anytime you call a method, assign a variable or otherwise cast the type from a primitive to a wrapper.

The best practice depends on your needs. If you need to have a null value, then declare your method with the wrapper, otherwise use a primitive.</description>
		<content:encoded><![CDATA[<p>Sorry for the delayed response on this&#8230; Autoboxing happens anytime you call a method, assign a variable or otherwise cast the type from a primitive to a wrapper.</p>
<p>The best practice depends on your needs. If you need to have a null value, then declare your method with the wrapper, otherwise use a primitive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dh</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-2870</link>
		<dc:creator>dh</dc:creator>
		<pubDate>Fri, 12 Jan 2007 14:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-2870</guid>
		<description>Hi

I liked this post very much and felt it was very informing, and I just want to try and understand unboxing/boxing correctly.

Does boxing happen when you parse a primitive to a method?

ex. someMethod(int value){}

I'm just trying to figure out which is the best practice when creating methods/constructor, using primitives or wrapped primitives?

ex. MyClass(Integer id, Long value){}

vs.

ex. MyClass(int id, long value){}

Hmm not sure I formulated my question correctly, but alas english is not my native tongue, so bare with me.

dh

btw. your site was the first hit on "java boxing unboxing best practice" on google</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I liked this post very much and felt it was very informing, and I just want to try and understand unboxing/boxing correctly.</p>
<p>Does boxing happen when you parse a primitive to a method?</p>
<p>ex. someMethod(int value){}</p>
<p>I&#8217;m just trying to figure out which is the best practice when creating methods/constructor, using primitives or wrapped primitives?</p>
<p>ex. MyClass(Integer id, Long value){}</p>
<p>vs.</p>
<p>ex. MyClass(int id, long value){}</p>
<p>Hmm not sure I formulated my question correctly, but alas english is not my native tongue, so bare with me.</p>
<p>dh</p>
<p>btw. your site was the first hit on &#8220;java boxing unboxing best practice&#8221; on google</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes Maldonado: Data Junkie &#187; Blog Archive &#187; Java 1.5 Autoboxing Links</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-135</link>
		<dc:creator>Wes Maldonado: Data Junkie &#187; Blog Archive &#187; Java 1.5 Autoboxing Links</dc:creator>
		<pubDate>Thu, 01 Jun 2006 20:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-135</guid>
		<description>[...] http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/" rel="nofollow">http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
