title: Remove duplication from an array of objects
body: <p>I have an object like below,</p>
  
  <pre><code>class LocationData{
   String time;
   String name;
   String address;
  }
  </code></pre>
  
  <p>for this object i have created getter setter.</p>
  
  <p>By using service i fill this above model and save into room database.
  whenever user open my app i just update the room database data to server using API.
  Now sometimes the time duplication occurred. How to remove the object from array based on time. time should be unique.</p>