title: Remove Duplicates from List of HashMap Entries
body: <p>I have a <code>List&lt;HashMap&lt;String,Object&gt;&gt;</code> which represents a database where each list record is a database row.</p>
  
  <p>I have 10 columns in my database. There are several rows where the values of 2 particular columns are equals. I need to remove the duplicates from the list after the list is updated with all the rows from database.</p>
  
  <p>What is the efficient way?</p>
  
  <p>FYI - I am not able to do distinct while querying the database, because the GroupName is added at a later stage to the <code>Map</code> after the database is loaded. And since Id column is not primary key, once you add GroupName to the <code>Map</code>. You will have duplicates based on Id + GroupName combination!</p>
  
  <p>Hope my question makes sense. Let me know if we need more clarification.</p>