title: Java - How to Remove Duplicates in ArrayList Based on Multiple Properties
body: <p>I want to remove duplicate records from an arraylist based on multiple properties. This is a sample domain object class:</p>
  
  <pre><code>private String mdl;
  private String ndc;
  private String gpi;
  private String labelName;
  private int seqNo;
  private String vendorName;
  </code></pre>
  
  <p>The mdl, ndc, gpi, and seqNo together make up a unique record. I want to find duplicates in an arraylist that checks for these 4 properties and then removes the record from the list if a record with the same 4 properties already exists in the list.</p>