title: Merging Treemaps in a list
body: <p>I have a <code>List&lt;Map&lt;String, Object&gt;&gt;</code> which contains the following maps.</p>
  
  <pre><code>Map:{clusterList=[71051], senseId=65786, totalCluster=1}
  Map:{clusterList=[71051], senseId=65787, totalCluster=1}
  Map:{clusterList=[4985, 71052], senseId=65788, totalCluster=2}
  Map:{clusterList=[125840,153610,167812, 65787, 204091, 32586, 65786], senseId=71051, totalCluster=7}
  Map:{clusterList=[11470, 65788], senseId=71052, totalCluster=2} 
  </code></pre>
  
  <p>I have traversed the map and checked if senseId is present in the clusterList. But traversing each clusterList with senseId is taking long time with traditional for loop and also I am unable to get the merged list as the following </p>
  
  <pre><code>Map:{clusterList=[125840,153610,167812, 65787, 204091, 32586, 65786], senseId=71051, totalCluster=7}
  Map:{clusterList=[4985,11470, 65788], senseId=71052, totalCluster=2}
  </code></pre>
  
  <p>I cant even remove the map with sensId present in the clusterList as it throws as concurrent operation exception.</p>
  
  <p>Any ideas how to get to the result other than for loop as this list is very small so for loop still works. But I have list with 180 map entries and its hard to traverse the whole list and merge the maps.</p>
  
  <p>I am stuck because the senseId of one map is present in clusterList of other map. So not able to merge them with simple search. </p>