<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Generic (n-ary) Tree in Java</title>
	<atom:link href="http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
	<description>random musings of just another computer nerd</description>
	<lastBuildDate>Sun, 05 Sep 2010 08:53:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: vivin</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-7790</link>
		<dc:creator>vivin</dc:creator>
		<pubDate>Tue, 24 Aug 2010 16:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-7790</guid>
		<description>I think the best way to go about it would be to create a Group object that maintains a list of Users. Then, your generic tree would be genericized by Group, meaning that the data element of each node is a Group object. This way you don&#039;t need to represent Users as individual nodes. They can be wrapped up inside the Group object.

When you build up your tree, you first build up Group objects and add users to them. You then use the Group object to create a GenericTreeNode.</description>
		<content:encoded><![CDATA[<p>I think the best way to go about it would be to create a Group object that maintains a list of Users. Then, your generic tree would be genericized by Group, meaning that the data element of each node is a Group object. This way you don&#8217;t need to represent Users as individual nodes. They can be wrapped up inside the Group object.</p>
<p>When you build up your tree, you first build up Group objects and add users to them. You then use the Group object to create a GenericTreeNode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-7789</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Tue, 24 Aug 2010 15:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-7789</guid>
		<description>Hey,

Many companies have tons of Active Directory Groups, and there are group of groups, and it could be very tricky to assess how many group of groups there are.

I am trying to use your code in order to build a n-ary tree from these groups.

For each group stored in Active Directory there are : 
- the members of this group it could &quot;users&quot; but also groups
- the groups that this group below to

I was wondering how to use your n-ary tree to build the n-ary trees in order to have a list of the trees and how deep they are. Any ideas ?

Many thanks, Oliver





I am using your code in order to build a tree from</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Many companies have tons of Active Directory Groups, and there are group of groups, and it could be very tricky to assess how many group of groups there are.</p>
<p>I am trying to use your code in order to build a n-ary tree from these groups.</p>
<p>For each group stored in Active Directory there are :<br />
- the members of this group it could &#8220;users&#8221; but also groups<br />
- the groups that this group below to</p>
<p>I was wondering how to use your n-ary tree to build the n-ary trees in order to have a list of the trees and how deep they are. Any ideas ?</p>
<p>Many thanks, Oliver</p>
<p>I am using your code in order to build a tree from</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivin</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1465</link>
		<dc:creator>vivin</dc:creator>
		<pubDate>Wed, 17 Feb 2010 17:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1465</guid>
		<description>&lt;a href=&quot;#comment-1464&quot; rel=&quot;nofollow&quot;&gt;@Guus &lt;/a&gt; 
Ah, good point. Thanks for catching that! I&#039;ll send you an email - thanks for taking the time to make a project. I do have a google code account - I should probably move this into that!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1464" rel="nofollow">@Guus </a><br />
Ah, good point. Thanks for catching that! I&#8217;ll send you an email &#8211; thanks for taking the time to make a project. I do have a google code account &#8211; I should probably move this into that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guus</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1464</link>
		<dc:creator>Guus</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1464</guid>
		<description>&lt;a href=&quot;#comment-1463&quot; rel=&quot;nofollow&quot;&gt;@vivin &lt;/a&gt; 
Actually, I couldn&#039;t wait and made a little Maven project out of it myself. I&#039;ll be happy to send it to you, if you&#039;d like me to.

There appears to be a small omission in the code: you&#039;re not overriding Object.equals(Object obj) even though you intent to. Instead, you have GenericTreeNode.equals(GenericTreeNode obj).

Poke me via mail (I included it in the header of this comment) and I&#039;ll send you a project archive.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1463" rel="nofollow">@vivin </a><br />
Actually, I couldn&#8217;t wait and made a little Maven project out of it myself. I&#8217;ll be happy to send it to you, if you&#8217;d like me to.</p>
<p>There appears to be a small omission in the code: you&#8217;re not overriding Object.equals(Object obj) even though you intent to. Instead, you have GenericTreeNode.equals(GenericTreeNode obj).</p>
<p>Poke me via mail (I included it in the header of this comment) and I&#8217;ll send you a project archive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivin</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1463</link>
		<dc:creator>vivin</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1463</guid>
		<description>&lt;a href=&quot;#comment-1461&quot; rel=&quot;nofollow&quot;&gt;@Guus &lt;/a&gt; 
Good point - I&#039;ll try to jar it up sometime and release it as a library!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1461" rel="nofollow">@Guus </a><br />
Good point &#8211; I&#8217;ll try to jar it up sometime and release it as a library!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guus</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1461</link>
		<dc:creator>Guus</dc:creator>
		<pubDate>Wed, 17 Feb 2010 09:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1461</guid>
		<description>Are you releasing this code as a project somewhere? It&#039;d be nice to be able to simply include it as a library.</description>
		<content:encoded><![CDATA[<p>Are you releasing this code as a project somewhere? It&#8217;d be nice to be able to simply include it as a library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivin</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1397</link>
		<dc:creator>vivin</dc:creator>
		<pubDate>Mon, 01 Feb 2010 23:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1397</guid>
		<description>&lt;a href=&quot;#comment-1396&quot; rel=&quot;nofollow&quot;&gt;@Lobo &lt;/a&gt; 
I actually prefer the regex because it&#039;s more obvious what I&#039;m doing. When using a substring, it&#039;s not immediately obvious (without comments) what you&#039;re doing. I also gravitate towards to regexes due to the fact that I&#039;ve written a lot of Perl code. Regexes aren&#039;t as elegant in Java though.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1396" rel="nofollow">@Lobo </a><br />
I actually prefer the regex because it&#8217;s more obvious what I&#8217;m doing. When using a substring, it&#8217;s not immediately obvious (without comments) what you&#8217;re doing. I also gravitate towards to regexes due to the fact that I&#8217;ve written a lot of Perl code. Regexes aren&#8217;t as elegant in Java though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lobo</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1396</link>
		<dc:creator>Lobo</dc:creator>
		<pubDate>Mon, 01 Feb 2010 18:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1396</guid>
		<description>I believe it&#039;s a rough implementation of your idea.
Which one do you prefer? Using Pattern, Matcher etc over -
return (this.children.size()&gt;0? str.substring(0, str.lenth()-2) : str ) + &quot;]&quot;;</description>
		<content:encoded><![CDATA[<p>I believe it&#8217;s a rough implementation of your idea.<br />
Which one do you prefer? Using Pattern, Matcher etc over -<br />
return (this.children.size()&gt;0? str.substring(0, str.lenth()-2) : str ) + &#8220;]&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivin</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1392</link>
		<dc:creator>vivin</dc:creator>
		<pubDate>Sun, 31 Jan 2010 17:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1392</guid>
		<description>&lt;a href=\#comment-1390\ rel=\nofollow\ rel=&quot;nofollow&quot;&gt;@SteveO &lt;/a&gt; 
I was trying to represent data that had parent-child relationships an arbitrary number of levels deep.</description>
		<content:encoded><![CDATA[<p><a href=\#comment-1390\ rel=\nofollow\ rel="nofollow">@SteveO </a><br />
I was trying to represent data that had parent-child relationships an arbitrary number of levels deep.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteveO</title>
		<link>http://vivin.net/2010/01/30/generic-n-ary-tree-in-java/comment-page-1/#comment-1390</link>
		<dc:creator>SteveO</dc:creator>
		<pubDate>Sun, 31 Jan 2010 06:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://vivin.net/?p=1395#comment-1390</guid>
		<description>So what was the problem at work that necessitated this solution?</description>
		<content:encoded><![CDATA[<p>So what was the problem at work that necessitated this solution?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
