Java put map value's in a treeset?
<p>I have a list with some beans and those beans are sorted maps.  I want to iterate over maps and get the valuse and put them in a teeset.</p>

<pre><code> List&lt;DlhUnitBean&gt; plannedBeans
</code></pre>

<p>This is what inside of "plannedBeans"</p>

<pre><code>public int getUnitNumber() { return unitNumber; }
public SortedMap&lt;Date, DlhPhasing&gt; getPlannedDlhByMonth() { return phasing; }
</code></pre>

<p>This is what is inside of the map</p>

<pre><code> public Date getMonth() { return month; }
public double getPlannedDlh() { return planDlh; }
</code></pre>

<p>I want to get all the month's in the sorted maps and throw them in one treeset.</p>
